[Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread sean . upton

Supposedly proximity searches are possible... like "FIDELITY within 8 words
of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
here...

Thanks,
Sean

=
Sean Upton
Senior Programmer/Analyst
SignOnSanDiego.com
The San Diego Union-Tribune
619.718.5241
[EMAIL PROTECTED]
=

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Andy McKay

Really using ZCatalog? I've never heard of that. There some globbing
searches *? etc, but nothing like that is readily apparent from the API.
Sounds like an interesting (ie complicated) idea...
--
  Andy McKay.


- Original Message -
From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Wednesday, January 10, 2001 8:41 AM
Subject: [Zope] Proximity searches w/ ZCatalog


 Supposedly proximity searches are possible... like "FIDELITY within 8
words
 of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
 here...

 Thanks,
 Sean

 =
 Sean Upton
 Senior Programmer/Analyst
 SignOnSanDiego.com
 The San Diego Union-Tribune
 619.718.5241
 [EMAIL PROTECTED]
 =

 ___
 Zope maillist  -  [EMAIL PROTECTED]
 http://lists.zope.org/mailman/listinfo/zope
 **   No cross posts or HTML encoding!  **
 (Related lists -
  http://lists.zope.org/mailman/listinfo/zope-announce
  http://lists.zope.org/mailman/listinfo/zope-dev )



___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Chris Withers

[EMAIL PROTECTED] wrote:
 
 Supposedly proximity searches are possible... like "FIDELITY within 8 words
 of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
 here...

Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.

I think Dieter Maurer [EMAIL PROTECTED] wrote the code, so he's
probably a good person to speak to :-)

cheers,

Chris

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer

[EMAIL PROTECTED] writes:
  Supposedly proximity searches are possible... like "FIDELITY within 8 words
  of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
  here...
Zope supports some proximity searches, but it provides far less
control than you ask for.

The proximity operator is "...".
It is essentially an "and" with a score depending on the distance.
You will not get more control.


Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




Re: [Zope] Proximity searches w/ ZCatalog

2001-01-10 Thread Dieter Maurer

Chris Withers writes:
  [EMAIL PROTECTED] wrote:
   
   Supposedly proximity searches are possible... like "FIDELITY within 8 words
   of MUTUAL FUNDS."  Can't find anything in docs.  Anybody have a suggestion
   here...
  
  Yeah, I think you'd put "FIDELITY ... MUTUAL FUNDS" in the search box.
  
  I think Dieter Maurer [EMAIL PROTECTED] wrote the code, so he's
  probably a good person to speak to :-)
No, I just looked for bugs in it and found several.

It is almost as you described:

  the proximity operator is "..."

  you can not control the distance

  "..." is effectively an "and" with a high score when the
terms are near together and a lower score for higher
distances

  term in "..." are effectively combined with "...",
thus: '"bear wine champagner"' is equivalent to
'bear ... wine ... champagner'


ZCatalog would interpret "FIDELITY ... MUTUAL FUNDS"
as "(FIDELITY ... MUTUAL) or FUNDS"
The nearest result what "sean" asked for, would
probably be 'FIDELITY ... "MUTUAL FUNDS"',
which is equivalent to 'FIDELITY ... (MUTUAL ... FUNDS)'.

I have not too much confidence in ZCatalog (yet ; this
may change now that Chris P is responsible for it).
I doubt, it will implement "A ... B ... C"
sensefully.
It is a big question, all together, whether a binary
operator is the correct choice for proximity.



Dieter

___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )