Thanks IanI am using same analyzer for both indexing & searching. Problem is either I search hello world or hello-world or hello:world or hello,world in all cases I am getting same result. All of the queries are wrapped in double quotes. Actuall message indexed is hello - world.Also I am using phrasequery.
-- View this message in context: http://lucene.472066.n3.nabble.com/Lucene-Query-Wrong-Result-for-phrase-tp4147842p4147906.html Sent from the Lucene - Java Users mailing list archive at Nabble.com.