[KinoSearch] leaky filters

Marvin Humphrey marvin at rectangular.com
Wed Sep 5 10:25:10 PDT 2007




On Sep 5, 2007, at 9:59 AM, John Perry wrote:

> Using the development version of KinoSearch (0.20) I'm trying to  
> filter the query results by a range filter (date) and two optional  
> query filters (agency and docType). The range filter works great.  
> The query filters seem to have no effect at all. I'm probably  
> missing something obvious here, but I just can't see what I'm doing  
> wrong.

What analyzer is being used on the agency and docType fields?   
Keyword fields like docType ususally should not be analyzed.
  My guess is that you have a stemmed/non-stemmed mismatch...

>    my $agency_query = KinoSearch::Search::TermQuery->new(
>        term => KinoSearch::Index::Term->new( 'source', $agency ),
>    );
>      $agency_filter = KinoSearch::Search::QueryFilter->new(
>        query => $agency_query,
>    );
> }
>
> my $docType_filter;
> if ( $doctype ) {
>    my $docType_query = KinoSearch::Search::TermQuery->new(
>        term => KinoSearch::Index::Term->new( 'docType', 'audit' ),
>    );
>      $docType_filter = KinoSearch::Search::QueryFilter->new(
>        query => $docType_query,
>    );
> }

... at least on the agency field.  On the docType field, should that  
"'audit'" be hard coded?

Marvin Humphrey
Rectangular Research
http://www.rectangular.com/



_______________________________________________
KinoSearch mailing list
KinoSearch at rectangular.com
http://www.rectangular.com/mailman/listinfo/kinosearch




More information about the kinosearch mailing list