On Thu Mar 07 12:48:23 2013, blinov.stanislav@gmail.com wrote:
Show quoted text> I have figured out the problem. It comes when I pass
> Search::Tools::QueryParser to HiLiter without quotes.
>
> Example of code that doesn't works:
>
> my $qparser = Search::Tools::QueryParser->new(stemmer =>
> \&mystemfunc);
> my $search_tools_parsed_query = $qparser->parse($query);
>
> my $hiliter = Search::Tools::HiLiter->new(
> query => $search_tools_parsed_query
> );
>
> However, if I use: query => "$search_tools_parsed_query" - it works.
>
> Don't know why.
I've added a test case for this in
https://github.com/karpet/search-tools-
perl/commit/7ba950d9ebc6d27cbba269d567db8b70abc3b653
but it is passing for me. If you could fork search-tools on github and expand that test till it
fails, I can try and fix it.
Show quoted text> Also, if I use Russian charactets, the script outputs in console
> messages like:
>
> no entity defined for >и< !
>
> Not really a bug, but annoying and useless.
fixed in
https://github.com/karpet/search-tools-
perl/commit/6e2e03adb6c106fb4f86dd56fca1044a270bb2ec