Re: [Zope-dev] more on keyword indexes
Hello, Thanks for all the replies. Its seems there are two conflicting answers to my questions. Steve Alexander says that it is possible to query indexes using the syntax <dtml-in "Catalog.searchResults( doc_keywords = ['one','two','ect'] >. However, Dieter says that it is not yet possible to query for more than one keyword at once. It seems to me that these two sentiments are mutually exclusive. Am I mistaken here? -josh
Josh Zeidner writes:
OK. Is it possible to query keyword indexes for several keywords at once? Not that I know of.
You either have to extend ZCatalog or wait some time. There are different people working on ZCatalog enhancements.
Again, I am reporting a bug .... You already know the Collector? It is Zope's bug tracking system.
You find it via zope.org. Its old URL has been
URL:http://classic.zope.org:8080/Collector
but this might have changed after the recent changes on zope.org.
I have had very good response to Collector bug reports for Zope itself. At least in the past, bug reports and even patches for ZCatalog probably have been ignored, however. I hope, this has changed meanwhile.
By the way:
* What does "unpredictable results" mean?
Dieter
PS: I have just blocked mail from "hotmail.com" (and "excite.com") because I got an increasing number of bulk email ad's with a faked "from: XXX@hotmail.com" header.
This means: I will no longer see direct messages from you, only your Zope mailing list messages which reach me with a delay of up to one day.
_______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Josh Zeidner writes:
.... However, Dieter says that it is not yet possible to query for more than one keyword at once. At least, it was not my intention to say such a thing.
You can search for several keywords at once, but the result is the *UNION* of the results for the single keywords. I.e., the keywords are combined with an "OR". You can not search for the objects with all the keywords you specify. I.e. you do not get the effect of ANDing your keywords. Dieter
OK. that clears a lot up. Im guessing that you can query all indexes that intersect with your query set( UNION ) by using the syntax Steve mentioned. <dmtl-in Catalog.queryIndex( keywords_index = ['one','two','etc'] )> ( or something like that ). as for the "unpredictable results", I found that querying the index produces different results every time I queried it. The steps to reproduce this are tedious and numerous. thanks, josh Josh Zeidner writes:
.... However, Dieter says that it is not yet possible to query for more than one keyword at once. At least, it was not my intention to say such a thing.
You can search for several keywords at once, but the result is the *UNION* of the results for the single keywords. I.e., the keywords are combined with an "OR". You can not search for the objects with all the keywords you specify. I.e. you do not get the effect of ANDing your keywords. Dieter _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://lists.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://lists.zope.org/mailman/listinfo/zope-announce http://lists.zope.org/mailman/listinfo/zope )
participants (3)
-
Dieter Maurer -
Josh Zeidner -
Josh Zeidner