[Zope-CVS] CVS: Products/ZCTextIndex - IIndex.py:1.1.2.1
Guido van Rossum
guido@python.org
Tue, 30 Apr 2002 17:04:19 -0400
Update of /cvs-repository/Products/ZCTextIndex
In directory cvs.zope.org:/tmp/cvs-serv28485
Added Files:
Tag: TextIndexDS9-branch
IIndex.py
Log Message:
IIndex -- interface for an index object.
=== Added File Products/ZCTextIndex/IIndex.py ===
##############################################################################
#
# Copyright (c) 2001, 2002 Zope Corporation and Contributors.
# All Rights Reserved.
#
# This software is subject to the provisions of the Zope Public License,
# Version 2.0 (ZPL). A copy of the ZPL should accompany this distribution.
# THIS SOFTWARE IS PROVIDED "AS IS" AND ANY AND ALL EXPRESS OR IMPLIED
# WARRANTIES ARE DISCLAIMED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
# WARRANTIES OF TITLE, MERCHANTABILITY, AGAINST INFRINGEMENT, AND FITNESS
# FOR A PARTICULAR PURPOSE.
#
##############################################################################
"""Index Interface."""
import Interface
def IIndex(Interface.Base):
"""Interface for an Index."""
def search(term):
"""Execute a search on a single term given as a string.
Return an IIBucket.
"""