[Zope-CVS] CVS: Products/ZCTextIndex - QueryParser.py:

Tim Peters tim@zope.com
Sun, 5 May 2002 21:05:10 -0400

[Guido van Rossum]
> Modified Files:
>       Tag: TextIndexDS9-branch
> 	QueryParser.py
> Log Message:
> Change the second alternative for Term from ATOM to ATOM+.  This
> allows queries like "hare brained" in addition to "hare-brained".  The
> second one is (and was always) a single ATOM, and results in a single
> call to search(term).  The first one now does the same; the term
> argument being "hare brained" (which search() parses out in exactly
> the same way, by virtue of the splitter we use).

Note with "hare brained" we're in the realm of "implicit operators", and the
current .search() effectively combines the wids coming back from the
splitter via OR.  I suppose that should be overridable somehow; ten cents
says Jim would prefer AND here <wink>.