I am using phrase query for hibernate lucene search in my code.It is working but I want to do exact search which is case Insensitive.I have tried term query but it is case sensitive. I want to search like eg:
BeautifulRainy Day. If I search "rainy day" the result should be 0 hits. If i search "beautifulrainy Day" the result should be 1 hit. If I search "Day" the result should be 0 hits.
Basically I want java (.equalignorecase ) type search not (.contains) .I want to keep using the phrase query if it is possible.