Le 05-sept.-09 à 23:26, Villemos, Gert a écrit :
- The QParserPlugin is a factory for the actual QParser parser, i.e. based on the query string and other parameters a parser is instantiated and setup.
right.
- As part of the construction the plugin parses the q string and extracts the parameters, ading them as TermQuery(s) to the parser.
I think that's correct.
- A 'concept expansion' extension could simply be a QParserPlugin specialization, which as part of the 'createParser' method expands the terms in the q string, i.e. 'replace' the input 'q=software' with 'q=software OR program OR computer OR system OR package'.
Exactly.The fact that you can master all the query classes is good luxury also, e.g. to do fine-grained queries without being worried about escapes by using once again a query-parser down the chain.
paul
smime.p7s
Description: S/MIME cryptographic signature