Rv: Re: Rv: Re: [Zope] why a xcatalog keywordindex is mandatory?

Yurj yurj at alfa.it
Sun Dec 7 16:31:46 EST 2003


--------- Messaggio Originale --------
Da: Dieter Maurer <dieter at handshake.de>
Per: Yurj <yurj at alfa.it>
Cc: zope at zope.org
Oggetto: Re: Rv: Re: [Zope] why a xcatalog keywordindex is mandatory?
Data: 07/12/03 17:44

>
> Yurj wrote at 2003-12-7 12:37 -0100:
> &gt; ...
> &gt;I've solved it in /PluginIndexes/common/util.py. When the param is a
record,
> &gt;around line 95, I've added:
> &gt;
> &gt;if keys == ['']: keys = None
> &gt;
> &gt;Is it correct? Seems to work with all indexes I've and KeywordIndexes,
which
> &gt;works also with AND as operator.
>
> &gt;From a semantic point of view, it is wrong: it lets an empty
> &quot;OR&quot; search return everything.
>
> Maybe, you are not interested in such issues...

Empty for me means that it is not interesting to use that index for search
(ex: put nothing on that field). Is useful to have a search interface that
return nothing? :)

I know keywordindex has problem, I've found few example in the web :)

________________________________________________
Message sent using ALFANET Caorle WEBMAIL 1.0




More information about the Zope mailing list