Hi All
Thank you for your help to date, totally appreciated. I'm currently looking into doing a search that is both case sensitive as well as case insensitive on the same index =o. Upon setting up my object I do the following:
my $tokenizer = KinoSearch::Analysis::Tokenizer->new;
my $lc_normalizer = KinoSearch::Analysis::LCNormalizer->new;
my $stemmer = KinoSearch::Analysis::Stemmer->new(language => 'en');
my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new(analyzers => [$lc_normalizer, $tokenizer, $stemmer]);
The above works nicely for case insensitive indexing, however removing
my $lc_normalizer = KinoSearch::Analysis::LCNormalizer->new;
will create an index that is case sensitive!
I'm looking to build a search option that allows the user to 'Match case'. I'm also trying to avoid building a separate index that preserves case sensitivity. Is there a work around for this or am I forced to have duplicate indexing (one case sensitive while the others case insensitive)?
Assistance appreciated.
Regards,
Riyaad
Thank you for your help to date, totally appreciated. I'm currently looking into doing a search that is both case sensitive as well as case insensitive on the same index =o. Upon setting up my object I do the following:
my $tokenizer = KinoSearch::Analysis::Tokenizer->new;
my $lc_normalizer = KinoSearch::Analysis::LCNormalizer->new;
my $stemmer = KinoSearch::Analysis::Stemmer->new(language => 'en');
my $analyzer = KinoSearch::Analysis::PolyAnalyzer->new(analyzers => [$lc_normalizer, $tokenizer, $stemmer]);
The above works nicely for case insensitive indexing, however removing
my $lc_normalizer = KinoSearch::Analysis::LCNormalizer->new;
will create an index that is case sensitive!
I'm looking to build a search option that allows the user to 'Match case'. I'm also trying to avoid building a separate index that preserves case sensitivity. Is there a work around for this or am I forced to have duplicate indexing (one case sensitive while the others case insensitive)?
Assistance appreciated.
Regards,
Riyaad