Commit 8263c2db authored by Jeffrey Shell's avatar Jeffrey Shell

Allow indexing of non-text fields

parent 5bbcd758
...@@ -127,8 +127,8 @@ Notes on a new text index design ...@@ -127,8 +127,8 @@ Notes on a new text index design
$Id: TextIndex.py,v 1.6 1997/11/03 18:59:59 jim Exp $''' $Id: TextIndex.py,v 1.7 1997/12/01 22:58:48 jeffrey Exp $'''
__version__='$Revision: 1.6 $'[11:-2] __version__='$Revision: 1.7 $'[11:-2]
from Globals import Persistent from Globals import Persistent
import BTree, IIBTree import BTree, IIBTree
...@@ -194,7 +194,7 @@ class TextIndex(Persistent): ...@@ -194,7 +194,7 @@ class TextIndex(Persistent):
id=self._schema[id] id=self._schema[id]
row=self._data[i] row=self._data[i]
k=f(row,id) k=str(f(row,id))
self._index_document(k,i,un) self._index_document(k,i,un)
...@@ -626,6 +626,9 @@ for word in stop_words: stop_word_dict[word]=None ...@@ -626,6 +626,9 @@ for word in stop_words: stop_word_dict[word]=None
############################################################################## ##############################################################################
# #
# $Log: TextIndex.py,v $ # $Log: TextIndex.py,v $
# Revision 1.7 1997/12/01 22:58:48 jeffrey
# Allow indexing of non-text fields
#
# Revision 1.6 1997/11/03 18:59:59 jim # Revision 1.6 1997/11/03 18:59:59 jim
# Fixed several bugs in handling query parsing and proximity search. # Fixed several bugs in handling query parsing and proximity search.
# #
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment