I'd use StandardAnalyzer, or ClassicAnalyzer. Also depends on how you
want to search. You probably want a query for "John Smith" to match
"John Smith" and "Smith, John" but maybe not "John Brown and Sam
Smith". The latter is a problem. You can partially work round it by
using a BooleanQuery ma
Hi,
I'm indexing names in a dedicated Lucene field and I wonder which
analyzer to use for that purpose. Typically, the names are in the format
"John Smith", so the WhitespaceAnalyzer is likely the best in most
cases. The field type to choose seems to be the TextField.
Or, would you rather recommend