Saurabh Vasekar wrote on 6/15/12 6:16 PM:
>
> Error -
>
> No field specified for term ' jakarta apache' -- set a default_field in Parser
> or Dialect at program_name.pl <http://program_name.pl>
>
> I think my code is correct. I am not able to figure out the error.
>
Did you try doing what the error message suggests? Set a default field in your
Parser:
my $queryparser = Search::Query->parser(
dialect => 'Lucy',
default_field => [ 'field1' ],
);
I see that the documentation/synopsis is lacking. I have fixed that on github
and will release a new version soon.
--
Peter Karman . http://peknet.com/ . [email protected]