Hi, I've been hacking FieldIndex and KeywordIndex to allow it to take the operator not to exclude object that matches from the result. As it seems to me it would be possible to patch the Unindex with the changes I've made. Is this something that could be added to the core? Examples of special not-enabled indexes: http://zope.org/Members/Colliberty/Easy%20Pieces/EasyIndexes/EasyIndexes-0-0...
Why don't you use AdvancedQuery+ManageableIndes by DM? -aj --On Donnerstag, 23. September 2004 13:24 Uhr +0200 Johan Carlsson <johanc@easypublisher.com> wrote:
Hi, I've been hacking FieldIndex and KeywordIndex to allow it to take the operator not to exclude object that matches from the result.
As it seems to me it would be possible to patch the Unindex with the changes I've made. Is this something that could be added to the core?
Examples of special not-enabled indexes: http://zope.org/Members/Colliberty/Easy%20Pieces/EasyIndexes/EasyIndexes- 0-0-1.tgz _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )
Johan Carlsson wrote at 2004-9-23 13:24 +0200:
I've been hacking FieldIndex and KeywordIndex to allow it to take the operator not to exclude object that matches from the result.
As it seems to me it would be possible to patch the Unindex with the changes I've made. Is this something that could be added to the core?
I do not think that any index should index all documents. For example, I like very much, that my "ManagableIndex"es do not index objects whose value (with respect to the index) is "None" (or matched by the "ignore" predicate). Such indexes do not have enough information to implement "NOT" by themselves (they would need the set of all catalogued objects from the catalog). I would not implement "NOT" at the index level (as I would not implement "AND" or "OR" at this level). All logical operators should be implemented by the search engine and not by the individual indexes. -- Dieter
participants (3)
-
Andreas Jung -
Dieter Maurer -
Johan Carlsson