David Neubert wrote:
Ryan,
Thanks for your response. I infer from your response that you can have a
different analyzer for each field
yes! each field can have its own indexing strategy.
I believe that the Analyzer approach you suggested requires the use
of the same Analzyer at query time that was used during indexing.
it does not require the *same* Analyzer - it just requires one that
generates compatiable tokens. That is, you may want the indexing to
split the input into sentences, but the query time analyzer keeps the
input as a single token.
check the example schema.xml file -- the 'text' field type applies
synonyms at index time, but does at query time.
re searching acrross multiple fields, don't worry, lucene handles this
well. You may want to do that explicitly or with the dismax handler.
I'd suggest you play around with indexing some data. check the
analysis.jsp in the admin section. It is a great tool to help figure
out what analyzers do at index vs query time.
ryan