added catalog package with a simple variation of hurry.query and a keyword index

git-svn-id: svn://svn.cy55.de/Zope3/src/cybertools/trunk@2552 fd906abe-77d9-0310-91a1-e0d9ade77398
This commit is contained in:
helmutm 2008-04-26 16:43:04 +00:00
parent 357f471deb
commit 8a8dcf206a

View file

@ -83,6 +83,9 @@ Let's provide a simple function for displaying query results.
>>> def displayQuery(q):
... return [intid.getObject(uid).id for uid in q.apply()]
>>> def displayQueryWithScores(q):
... return [(intid.getObject(uid).id, score) for uid, score in q.apply().items()]
Field Index Queries
===================