lucy-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Karman <pe...@peknet.com>
Subject Re: [lucy-user] Proximity Search support in apache Lucy (~)
Date Sat, 16 Jun 2012 02:03:26 GMT
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/  .  peter@peknet.com

Mime
View raw message