[Zope] KeywordIndex: Find empty list?
Dieter Maurer
dieter@handshake.de
Wed, 16 Jul 2003 19:04:48 +0200
Chris Withers wrote at 2003-7-16 08:31 +0100:
> Dieter Maurer wrote:
> > > If I search for {myattribute:[]} I get all objects returned.
> >
> > This is a bug (already reported, see mailing list archive).
>
> I think this may actually be by design...
Then the design would be buggy:
The explicit phrase for "searchResults(myattribute=keywordList)" (in case
"myattribute" is a keyword index) is:
Find all objects that are indexed by "myattribute" for
at least one keyword in "keywordList".
Now, if "keywordList" is empty, no object can be
indexed for at least one keyword in this list.
Dieter