[Zope] AND operator and ZCatalog

The Doctor What docwhat@gerf.org
Tue, 28 Nov 2000 14:58:21 -0600


* Dieter Maurer (dieter@handshake.de) [001127 17:31]:
> Bak @ kedai writes:
>  > i have a ZCatalog that indexes news.  i use keyword index, and text index.  
>  > when i try 
>  > 
>  > <dtml-in "Catalog(publication=myPub,section=mySec,date_posted=myDate)">
>  >   .....
>  > it seems that the search was ORed, not ANDed.  
>  > 
>  > i hope i'm clear enough.
> I tried it out:
>     For me, it was definitely an AND.
> 
> What I did:
>   Make a search for "Meta Type=Document Template" => lots of hits.
>   Add "Title=xxxx" to the search => no hits
>   Add "Title=Elvis" => some hits
> 
> as I would expect.

Those are anded, but principiasourcesearch isn't.

Searching for: zcatalog fish
http://www.zope.org/SiteIndex/search?date%3Adate=1969%2F12%2F31++16%3A00%3A00+US%2FPacific&date_usage=range%3Amin&text_content=zcatalog+fish

versus: zcatalog AND fish
http://www.zope.org/SiteIndex/search?date%3Adate=1969%2F12%2F31++16%3A00%3A00+US%2FPacific&date_usage=range%3Amin&text_content=zcatalog+AND+fish

Ciao!

-- 
There is no sweeter sound than the crumbling of your fellow man.
	-- Groucho Marx

The Doctor What: A really hip dude               http://docwhat.gerf.org/
docwhat@gerf.org                                                   KF6VNC