[Zope3-checkins] CVS: Zope3/src/zope/fieldindex - fieldindex.py:1.11
Anthony Baxter
anthony@interlink.com.au
Sun, 13 Jul 2003 04:23:57 -0400
Update of /cvs-repository/Zope3/src/zope/fieldindex
In directory cvs.zope.org:/tmp/cvs-serv16578/fieldindex
Modified Files:
fieldindex.py
Log Message:
Hooked up full text indexing. There's a new interface ISimpleQuery that
accepts a term and returns a list of hubids. A simple adapter is installed
to adapt textindex to this interface. FieldIndex actually implements this
interface, rather than IQuerying (oops).
=== Zope3/src/zope/fieldindex/fieldindex.py 1.10 => 1.11 ===
--- Zope3/src/zope/fieldindex/fieldindex.py:1.10 Sun Jul 13 01:51:08 2003
+++ Zope3/src/zope/fieldindex/fieldindex.py Sun Jul 13 04:23:22 2003
@@ -23,13 +23,13 @@
from types import ListType, TupleType
from zope.interface import implements
-from zope.index.interfaces.index import IInjection, IQuerying, IStatistics, \
- IRangeQuerying
+from zope.index.interfaces.index import IInjection, ISimpleQuery, \
+ IStatistics, IRangeQuerying
class FieldIndex(Persistent):
- implements(IRangeQuerying, IInjection, IQuerying, IStatistics)
+ implements(IRangeQuerying, IInjection, ISimpleQuery, IStatistics)
def __init__(self):
self.clear()
@@ -76,6 +76,7 @@
pass
def search(self, values):
+ "See interface ISimpleQuerying"
# values can either be a single value or a sequence of
# values to be searched.
if isinstance(values, (ListType, TupleType)):