Re: Lucene Query Wrong Result for phrase.

2014-07-18 Thread itisismail
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

Lucene Query Wrong Result for phrase.

2014-07-17 Thread itisismail
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