Java Lucene 4.5 how to search by case insensitive
问题 We have implemented Java Lucene search engine 4.5, I am trying to search the content even if the field value is case insensitive (e.g., if I search a city with name "Banglore" I get a result, but when I search a city with name "banglore" I get 0 results). I have used StandardAnalyzer for analyzing the data and WildcardQuery to match a Like condition (I tried as mentioned here without success). I am not sure where I have gone wrong. I appreciate any guidance on fixing this case sensitivity