> On Wed, Aug 21, 2002 at 06:12:18PM +0100, Robert Sanderson wrote:
> > As we have ""ed terms, isn't firstWords actually:
> > bath.title="search term *"
> > as the whitespace is meangingfull?
> Close, but not quite (if I was picky). What if the full title was
> "search term" (no following text). In this case the white space would
> cause it not to match.
True. Or if it was an exact index that included punctuation.
It really screams for regular expressions which would make it a dawdle
(but not insignificantly harder to implement I suspect).
And if they were looking for "search term is foo" but not "search term"
the server shouldn't interpret the trailing space asterisk as the user
wants first words OR exact match. A word boundary character is needed, or
to accept the short fallings of one of the other methods.
Assuming that | is a word boundary when not obvious, it would then be
> Our solution in our stuff (OK, I have said it before and I am a
> broken record sometimes!) was
> [email protected]("search term")
I'd prefer something which is more portable than adding in additional
named operators -- [email protected] is really just titleFirstWords= just
moving the arbitrary text after the relation as opposed to before it while
making it harder to parse.
,'/:. Rob Sanderson ([log in to unmask])
,'--/::(@)::. Special Collections and Archives, extension 3142
,'---/::::::::::. Twin Cathedrals: telnet: liverpool.o-r-g.org 7777
____/:::::::::::::. WWW: http://liverpool.o-r-g.org:8000/
I L L U M I N A T I