The problem is that you are using an analyzer at index time but then not at
search time.
StandardAnalyzer will convert Name1 to name1 at index time.
At search time, because you aren't using a query parser (which would by default
lowercase your terms) you are literally searching for Name1 which
Ah, that now makes sense.
Changed the code and now it works.
Thanks for the help.
On Monday, 16 June 2014, Allison, Timothy B. talli...@mitre.org wrote:
The problem is that you are using an analyzer at index time but then not
at search time.
StandardAnalyzer will convert Name1 to name1 at