Peter Karman wrote on 1/28/13 2:22 PM:

> 
>  my $query_parser = Search::Query->parser(
>     query_class => 'Lucy',
>     query_class_opts => {
>         ignore_order_in_proximity => 0,  # the default
>     },
>     default_field => 'content',
>  );
> 
>  my $string = qq/"here's looking * * kid"~10/;  # proximity within => 10
> 


that won't actually work, since '*' will trigger LucyX::Search::WildcardQuery.

This should work:

 my $string = qq/"here's looking kid"~10/; # proximity within => 10

should match

 "here's looking at you kid"

as well as

 "here's looking right past him and you kid"


-- 
Peter Karman  .  http://peknet.com/  .  [email protected]

Reply via email to