lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Paul Libbrecht <p...@activemath.org>
Subject Re: AW: AW: Concept Expansion
Date Sat, 05 Sep 2009 21:35:04 GMT

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
Mime
View raw message