[KinoSearch] Boolean searching across multiple fields
Chris Nandor
projects at pudge.net
Wed Oct 11 16:05:05 PDT 2006
At 15:29 -0700 2006.10.11, Marvin Humphrey wrote:
>The QueryParser in KinoSearch 0.13 has this behavior by default.
Oh, I had 0.12 initially. I have had 0.12 the last few weeks, and forgot
that it was added in *this* version.
>Note the top hit in this search for '+3 +senator':
>
>http://www.rectangular.com/cgi-bin/uscon_search.cgi?q=%2B3+%2Bsenator
>
>The title contains '3', but the body does not. The body contains
>'senator', but the title does not.
Sweet.
>> I know in the next version I can do, simply:
>>
>> my $query_parser = KinoSearch::QueryParser::QueryParser->new(
>> analyzer => $analyzer,
>> fields => \@fields,
>> );
So this code will allow the above behavior, then?
Curiously, how would I do it in 0.12? Knowing that may help me understand
the whole thing better.
--
Chris Nandor pudge at pobox.com http://pudge.net/
Open Source Technology Group pudge at ostg.com http://ostg.com/
More information about the kinosearch
mailing list