From 8a8dcf206a9fc5c5f9884ef380c68f51b57cc870 Mon Sep 17 00:00:00 2001 From: helmutm Date: Sat, 26 Apr 2008 16:43:04 +0000 Subject: [PATCH] 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 --- catalog/README.txt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/catalog/README.txt b/catalog/README.txt index e4a6b33..6743953 100644 --- a/catalog/README.txt +++ b/catalog/README.txt @@ -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 ===================