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:
parent
357f471deb
commit
8a8dcf206a
1 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
===================
|
||||
|
|
Loading…
Add table
Reference in a new issue