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

Stephan Richter srichter at cosmos.phy.tufts.edu
Fri Feb 20 15:44:24 EST 2004


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

Modified Files:
	__init__.py 
Log Message:
Improved doc strings.


=== Zope3/src/zope/index/interfaces/__init__.py 1.6 => 1.7 ===
--- Zope3/src/zope/index/interfaces/__init__.py:1.6	Fri Oct 31 14:07:15 2003
+++ Zope3/src/zope/index/interfaces/__init__.py	Fri Feb 20 15:44:23 2004
@@ -15,7 +15,6 @@
 
 $Id$
 """
-
 from zope.interface import Interface
 
 
@@ -42,6 +41,7 @@
         """
 
 class IQuerying(Interface):
+    """An index that can be queried by some text and returns a result set."""
 
     def query(querytext, start=0, count=None):
         """Execute a query.
@@ -60,6 +60,7 @@
         """
 
 class IStatistics(Interface):
+    """An index that provides statistical information about itself."""
 
     def documentCount():
         """Return the number of documents currently indexed."""
@@ -69,6 +70,7 @@
 
 
 class IExtendedQuerying(Interface):
+    """An index that supports advanced search setups."""
 
     def search(term):
         """Execute a search on a single term given as a string.
@@ -107,9 +109,10 @@
         """
 
 class IRangeQuerying(Interface):
+    """Query over a range of objects."""
 
     def rangesearch(minval, maxval):
-        """ Execute a range search.
+        """Execute a range search.
 
            Return an IISet of docids for all docs where
 
@@ -122,6 +125,7 @@
         """             
 
 class IKeywordQuerying(Interface):
+    """Query over a set of keywords, seperated by white space."""
 
     def search(query, operator='and'):
         """Execute a search given by 'query' as a list/tuple of
@@ -132,6 +136,7 @@
         """
 
 class ITopicQuerying(Interface):
+    """Query over topics, seperated by white space."""
 
     def search(query, operator='and'):
         """Execute a search given by 'query' as a list/tuple of filter ids.
@@ -142,33 +147,32 @@
         """
 
 class ISimpleQuery(Interface):
-    "a simple query interface"
+    "S simple query interface."
 
     def query(term, start=0, count=None):
         "search for the given term, return a sequence of hubids"
 
 
 class ITopicFilteredSet(Interface):
-    """ interface for filtered sets used by topic indexes """
+    """Interface for filtered sets used by topic indexes."""
     
     def clear():
-        """clearn the index"""
+        """Remove all entries from the index."""
 
     def index_doc(docid, context):
-        """index an object"""
+        """Add an object's info to the index."""
 
     def unindex_doc(docid):
-        """unindex the object with id 'docid'"""
+        """Remove an object with id 'docid' from the index."""
 
     def getId():
-        """return own filter id"""
+        """Return the id of the filter itself."""
 
     def setExpression(expr):
-        """set the filter expression, e.g.
-           'context.meta_type=='...'
-        """
+        """Set the filter expression, e.g. 'context.meta_type=='...'"""
+        
     def getExpression():
-        """return the filter expression"""
+        """Return the filter expression."""
 
     def getIds():
-        """return an IISet of docids"""
+        """Return an IISet of docids."""




More information about the Zope3-Checkins mailing list