lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From itisismail <>
Subject Lucene Query Wrong Result for phrase.
Date Fri, 18 Jul 2014 05:52:21 GMT
Hi I have created index with 1 field with simple message like (hello - world)
now when I create for search like +body:" \"hello world\"" & I should not
get any result because I have wrapped my search word in double quotes and
does not specify dash(-) between (hello and world) but I am still getting
that result.I am using Lucene version 3.0 & using snowball analyzer, also
use Cosntruct query likeString qry="+body:\"hello world\"";Query query = new
QueryParser(Version.LUCENE_30, "body", analyzer).parse(qry);Why lucene is
ignoring dash(-) while search is a phrase.

View this message in context:
Sent from the Lucene - Java Users mailing list archive at
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message