marvin at rectangular
Jul 22, 2008, 7:49 PM
Post #2 of 2
On Jul 21, 2008, at 8:03 AM, Riyaad Miller wrote:
> However when doing so for a string of words (eg. $Source = "foo foo
> foo blah blah") it returns no results at all.
> NB. 'site' has been indexed correctly. Could any please assist
> regarding this?
The problem is that TermQuery's constructor applies raw text. It
> my $SiteOnly = KinoSearch::Search::TermQuery->new( term =>
> KinoSearch::Index::Term->new( 'site', $Source ) );
Try using field-specific QueryParsers. In 0.162...
my $site_only_parser = KinoSearch::QueryParser::QueryParser->new(
analyzer => $analyzer,
fields => ['site'],
my $site_only = $site_only_parser->parse($site_qstring);
KinoSearch mailing list
KinoSearch [at] rectangular