lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erik Hatcher <e...@ehatchersolutions.com>
Subject Re: setPhraseSlop return the same results irrespective of int parameter
Date Mon, 22 Aug 2005 13:10:43 GMT
How have you indexed the "data" field and what is DEFAULT_ANALYZER?

     Erik


On Aug 22, 2005, at 7:44 AM, Anil Kumar E D wrote:

> In reference to the bug no:36296
>
> http://issues.apache.org/bugzilla/show_bug.cgi?id=36296Hi  
> Eric,Thanks for the reply.Query toString println was
> toString : data:dhotre data:anil
>
> Then i changed my query text value to include escaped (") value.
> something like this search("\"Dhotre Anil\"");
>
> Now the result is I get 1 hot count for search("\"Anil Dhotre\""); and
> 0 hit count for search("\"Dhotre Anil\""); Following is the source  
> snippet with SOP's below it.   queryParser.setPhraseSlop(2);
>    System.out.println("Slop : " + queryParser.getPhraseSlop());
>    Query query = queryParser.parse 
> (termsNameAndValues,"data",DEFAULT_ANALYZER) ;
>    System.out.println("toString : " + query.toString());
> Slop : 2
> toString : data:"dhotre anil"
> Hits count 0
>
>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message