: So QueryComponent is the place to do this? Are query analyzers already done?
I would actaully suggest doing it in a QParserPlugin, that way it can be reused in mulitple parsing sitautions and the stock search behavior of QueryComponent (including distributed search) can function as is. : Would I have access to stems, synonyms, tokens, etc of the query? those concepts only make sense in the context of analysis -- in either the QueryComponent or a QParser you have access to the query string and you can do whatever analysis you want on it (with the full IndexSchema at your disposal) -Hoss