Re: [Zope-dev] more on keyword indexes
Thanks for the reply. As for the ( MediaKeywords in ['ouch'] ) this is featured on a Zope article about keyword indexes and it should be updated.
Josh Zeidner writes:
.... This seems like the obvious result: BUT: it depends if you want a AND/OR type search. ZCatalog combines several search terms for a single index with "OR" and search expressions for different indexes with an "AND".
OK. Is it possible to query keyword indexes for several keywords at once? If so, what is the syntax? Again, I am reporting a bug I have found that even if I am querying for only one( using the aformentioned syntax ), the results are unpredictable. I am using CatalogAware ZClasses and I am quite sure that the words are indexed( by reporting the featured MetaData ). -josh zeidner _________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
Josh Zeidner wrote:
As for the ( MediaKeywords in ['ouch'] ) this is featured on a Zope article about keyword indexes and it should be updated.
You're right. The HOWTO at http://www.zope.org/Members/AlexR/KeywordIndexes has "in" instead of "=" in the last example. So, <dtml-in "Catalog.searchResults(doc_keywords in ['Squids', 'foo' 'bar'])"> should read: <dtml-in "Catalog.searchResults(doc_keywords=['Squids', 'foo' 'bar'])"> I've cc-ed Alex, the author of the HOWTO, into this message.
OK. Is it possible to query keyword indexes for several keywords at once? If so, what is the syntax?
What exactly do you mean? You can do a search for 'Squids' or 'foo' or 'bar' in a particular keyword index using the syntax given above.
Again, I am reporting a bug I have found that even if I am querying for only one( using the aformentioned syntax ), the results are unpredictable.
I explained in a previous message that I had tried to do what you described, and I could not reproduce your bug. Everything came out consistently, as I would expect.
I am using CatalogAware ZClasses and I am quite sure that the words are indexed( by reporting the featured MetaData ).
Ok. Describe exactly the steps I need to take, from an empty zope, to reproduce your bug. I'll try this out and either tell you what you've done wrong, or give you a patch to ZCatalog, depending where the fault lies. Don't forget to say exactly what version of Zope and what version of Python you're using. -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net
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.
On 12/17/00 3:48 AM, "Dieter Maurer" <dieter@handshake.de> wrote:
You either have to extend ZCatalog or wait some time. There are different people working on ZCatalog enhancements.
At DC, I'm the one working on almost all of it right now, so if people else where are working on Zcatalog enhancements, they may want to talk to me as I believe Zope3 will be *substantially* different.
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.
Until recently, the person who best knew the Catalog was no longer working on it actively. I've now taken this over, and while I don't have the bandwidth to track zope-dev constantly, I do try to find things. I've also fixed untold numbers of bugs that were easy to do (there are some that are structural and will have to wait), and 2.3 will have a *substantially* better Catalog. Chris -- | Christopher Petrilli Digital Creations | petrilli@digicool.com Where Zope comes from
Christopher Petrilli writes:
.... I do try to find things. I've also fixed untold numbers of bugs that were easy to do (there are some that are structural and will have to wait), and 2.3 will have a *substantially* better Catalog. That is very good news!
Dieter
participants (4)
-
Christopher Petrilli -
Dieter Maurer -
Josh Zeidner -
Steve Alexander