[Zope3-checkins] CVS: Zope3/src/zope/index/interfaces - index.py:1.2

Anthony Baxter anthony@interlink.com.au
Sun, 13 Jul 2003 04:23:30 -0400


Update of /cvs-repository/Zope3/src/zope/index/interfaces
In directory cvs.zope.org:/tmp/cvs-serv16578/index/interfaces

Modified Files:
	index.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/index/interfaces/index.py 1.1 => 1.2 ===
--- Zope3/src/zope/index/interfaces/index.py:1.1	Sun Jul 13 01:51:18 2003
+++ Zope3/src/zope/index/interfaces/index.py	Sun Jul 13 04:23:24 2003
@@ -121,3 +121,9 @@
            value >= minval             if maxval is not None
         """             
 
+class ISimpleQuery(Interface):
+    "a simple query interface"
+
+    def query(term, start=0, count=None):
+        "search for the given term, return a sequence of hubids"
+