[Zope-dev] ZCatalog text index search bugs?

Michel Pelletier michel@digicool.com
Tue, 13 Jun 2000 15:42:05 -0700


Dieter Maurer wrote:
> 
> R. David Murray writes:
>  > I am very confused.
>  >
>  >
>  >           The TextIndex search does an AND, not an OR, of the search
>  >           words: if you ask it to find "foo bar", it returns only
>  >           objects matching *both* "foo" and "bar", rather than object
>  >           matching *either* "foo" or "bar" (which Jason expected).
> This is definitely not the case!
> 
>  > Indeed, if you do a search that includes a word that is not on an
>  > item, the item is not returned.  So how is that working?
> That is a bug I discovered and analysed yesterday.
>   The index lookup is done by "index[word]". This raises
>   a KeyError exception, if "word" is not in the index. The exception
>   aborts the search; it returns without hit.
>   The behaviour is correct for "and" but of cause
>   wrong for "or".

This is fixed in 2.2b1, whe index not finding the word should not raise
an exception anymore and the search should not abort.  Can you confirm
that when you get a chance?
 
-- 

-Michel Pelletier

http://www.zope.org/Members/michel/MyWiki

Visit WikiCentral for the latest Zen:

http://www.zope.org/Members/WikiCentral