[Zope3-checkins] CVS: Zope3/src/zope/index/interfaces - __init__.py:1.3
Andreas Jung
andreas@andreas-jung.com
Tue, 15 Jul 2003 12:08:15 -0400
Update of /cvs-repository/Zope3/src/zope/index/interfaces
In directory cvs.zope.org:/tmp/cvs-serv12225/interfaces
Modified Files:
__init__.py
Log Message:
keyword index added
=== Zope3/src/zope/index/interfaces/__init__.py 1.2 => 1.3 ===
--- Zope3/src/zope/index/interfaces/__init__.py:1.2 Mon Jul 14 04:31:30 2003
+++ Zope3/src/zope/index/interfaces/__init__.py Tue Jul 15 12:07:40 2003
@@ -116,10 +116,20 @@
minval <= value <= maxval if minval<=maxval and
both minval and maxval are not None
- value <= maxval if minval is not None
+ Value <= maxval if minval is not None
value >= minval if maxval is not None
"""
+
+class IKeywordQuerying(Interface):
+
+ def search(query, operator='and'):
+ """Execute a search given by 'query' as a list/tuple of
+ (unicode) strings against the index. 'operator' can be either
+ 'and' or 'or' to search for all keywords or any keyword.
+
+ Return an IISet of docids
+ """
class ISimpleQuery(Interface):
"a simple query interface"