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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]