Robert Muir wrote:
try checking out PerFieldAnalyzerWrapper, so you can specify how each field
is handled, i.e. some fields with KeywordAnalyzer, other fields with
StandardAnalyzer, etc.
Thanks, yes actually I realize these fields do need some analysis
because I want to the search to be case ins
Hallo,
If you do not analyze fields during indexing, you cannot really use
QueryParser on the search side (because the QueryParser itsself always
analyzes the entered query string).
If you added some fields using NOT_ANALYZED, just use a simple "new
TermQuery(new Term(field, term))" to search for
try checking out PerFieldAnalyzerWrapper, so you can specify how each field
is handled, i.e. some fields with KeywordAnalyzer, other fields with
StandardAnalyzer, etc.
On Tue, Sep 29, 2009 at 6:16 PM, Paul Taylor wrote:
> I use the same Analyzer for both creating an index and searching however