Re: [Zope-dev] more on keyword indexes
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 ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
RE: [Zope-dev] more on keyword indexes
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. ( 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 - [EMAIL PROTECTED] 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 ) ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
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 - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
On 12/17/00 3:48 AM, "Dieter Maurer" <[EMAIL PROTECTED]> 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 | [EMAIL PROTECTED]Where Zope comes from ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
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 . 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: [EMAIL PROTECTED]" 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 - [EMAIL PROTECTED] >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 ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
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: [EMAIL PROTECTED]" 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 - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
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, should read: 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 ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
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 ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
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". Dieter ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
Re: [Zope-dev] more on keyword indexes
Hi Josh, I use KeywordIndexes a lot. Just for kicks, I implemented what you describe below in Zope2.3 grabbed fresh from CVS just now. I used DTML Documents for the objects to catalog, and I added a lines property called KW to each one. I queried the catalog using syntax like or Josh Zeidner wrote: > Hello, > > I did a little more investigiation into the problem, and couldnt really > find any documentation anywhere on what the actual semantics are of keywords > and how they are queried. For instance: > > I have three classes and each has an keyword index named KW: > > ObjectOne:KW = ['one','blue','furry'] > ObjectTwo:KW = ['two','flying','purple'] > ObjectThree: KW = ['three','one-eyed','purple'] > > If I were to query the ZCatalog with the following set of words: > ['purple'] I would expect to get: > > ObjectTwo > ObjectThree Yes, that's what you get. > Right? If I query the database with ['one','two'] ( if this type of thing > is at all possible ), I get : > > ObjectOne > ObjectTwo Yes, that's what you get. > This seems like the obvious result: BUT: it depends if you want a AND/OR > type search. It is an OR search. > I could also expect to get nothing( if its an AND type search > because no records match 'one' and 'two' ). Here is better example, what if > I queried: ['purple','one-eyed']. Would I be expecting only ObjectThree or > [ ObjectThree, ObjectTwo ] ( because they both match the keyword purple( a > logical set-intersection ) ). You get ObjectTwo and ObjectThree. > Also I found the keyword indexes to have some more obvious bugs. If I > only used one keyword for the matching critiria, for instance if I used > 'purple' , I would only get ObjectTwo. I get ObjectTwo and ObjectThree, as I'd expect. > Is anyone else using keyword > indexes? In what way are you using them? All sorts of things. One useful use is to limit a query on a SiteIndex type of catalog to just a sub-tree of your site. See my message to zope-dev on October: http://lists.zope.org/pipermail/zope-dev/2000-October/007535.html -- Steve Alexander Software Engineer Cat-Box limited http://www.cat-box.net ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )
[Zope-dev] more on keyword indexes
Hello, I did a little more investigiation into the problem, and couldnt really find any documentation anywhere on what the actual semantics are of keywords and how they are queried. For instance: I have three classes and each has an keyword index named KW: ObjectOne:KW = ['one','blue','furry'] ObjectTwo:KW = ['two','flying','purple'] ObjectThree: KW = ['three','one-eyed','purple'] If I were to query the ZCatalog with the following set of words: ['purple'] I would expect to get: ObjectTwo ObjectThree Right? If I query the database with ['one','two'] ( if this type of thing is at all possible ), I get : ObjectOne ObjectTwo This seems like the obvious result: BUT: it depends if you want a AND/OR type search. I could also expect to get nothing( if its an AND type search because no records match 'one' and 'two' ). Here is better example, what if I queried: ['purple','one-eyed']. Would I be expecting only ObjectThree or [ ObjectThree, ObjectTwo ] ( because they both match the keyword purple( a logical set-intersection ) ). Also I found the keyword indexes to have some more obvious bugs. If I only used one keyword for the matching critiria, for instance if I used 'purple' , I would only get ObjectTwo. Is anyone else using keyword indexes? In what way are you using them? Thanks, Josh Zeidner http://www.brooklynmedialabs.com ___ Zope-Dev maillist - [EMAIL PROTECTED] 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 )