You need to downcase Indiana. The QueryParser does it for you but when
you build the Query object yourself you need to make sure the terms
are downcase as if they had already been through the Analyzer.
Similarly, if you use a StopFilter then you shouldn’t add “the” (or
“das” or whatever is a stop-word in the language you are working with)
terms to your queries. That’s why the QueryParser is so useful. It
handles all of this for you.
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.