I am using SpanTerm Query for searching exact phrase in lucene. But it doesnt seem to work. Here is my code.
Indexing
IndexWriter writer = new IndexW
Use Lucene Query Builder, and give double quotes around the search string. It works for exact phrase search.
Reference: http://www.lucenetutorial.com/lucene-query-builder.html