Lucene search doesn't match phrases?

Topics: Core, Troubleshooting
Aug 6, 2013 at 11:58 PM
I received a question today from a client asking if we could make phrases inside quotes match exactly, like Google. I was confused at first because I assumed that this was the default behavior in Lucene queries using the classic query parser:

http://lucene.apache.org/core/3_5_0/queryparsersyntax.html

It turns out, using quotes to match phrases doesn't do anything. Some of the other syntax here does work, like using "(term) NOT (term)".

Anyone know if this is possible?