Re: [Zope-dev] more on keyword indexes

2000-12-18 Thread Josh Zeidner


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: [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

2000-12-18 Thread Christopher Petrilli

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

2000-12-17 Thread Dieter Maurer

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

2000-12-15 Thread Steve Alexander

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
   dtml-in "Catalog(KW=['one', 'two'])"
or
   dtml-in "Catalog(KW='purple')"


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 )




Re: [Zope-dev] more on keyword indexes

2000-12-15 Thread Dieter Maurer

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 )