lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Villemos, Gert" <gert.ville...@logica.com>
Subject AW: AW: Concept Expansion
Date Sat, 05 Sep 2009 21:26:21 GMT
Paul,
 
Thanks for the answer. Documentation on QParserPlugins concepts seems to be limited (well,
at least my search didnt find it and the java doc doesnt provide much of an explanation).
 
Do I understand the concepts / your suggestion correctly;
 
- 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.
- As part of the construction the plugin parses the q string and extracts the parameters,
ading them as TermQuery(s) to the parser.
- 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'.
 
Cheers,
Gert.
 
 
 

________________________________

Von: Paul Libbrecht [mailto:paul@activemath.org]
Gesendet: Sa 05.09.2009 23:03
An: solr-user@lucene.apache.org
Betreff: Re: AW: Concept Expansion



Gert,

we're doing a similar process on i2geo search, including simple 
language expansion (one word is queried in several fields of each 
language), and, though I haven't made it yet but will soon, I've been 
suggested to do it as qparser plugin.

paul


Le 05-sept.-09 à 22:47, Villemos, Gert a écrit :

> [Sorry, post submitted as HTML. Proper format below;]
>
>
> We would like to support concept expansion in searches, i.e. when a 
> user searches for 'software' then the system should also search for 
> keywords / phrases such as program, computer , system, package and 
> class.
>
> I imagine that the right way of doing this is a request handler, 
> which expands a query into its conceptual similar entries and 
> aggregates the results. A simple change in the filter from;
>
> q:software => 
>
> would most likely do the job.
>
> Does such a request handler already exist (... looking at the list 
> on the wiki and in the javadocs the answer seems to be no, but maybe 
> its maintained externally)?
>
> And is this the right way to go at all?
>
> Thanks,
> Gert.
>
>





Please help Logica to respect the environment by not printing this email  / Pour contribuer
comme Logica au respect de l'environnement, merci de ne pas imprimer ce mail /  Bitte drucken
Sie diese Nachricht nicht aus und helfen Sie so Logica dabei, die Umwelt zu schützen. / 
Por favor ajude a Logica a respeitar o ambiente nao imprimindo este correio electronico.



This e-mail and any attachment is for authorised use by the intended recipient(s) only. It
may contain proprietary material, confidential information and/or be subject to legal privilege.
It should not be copied, disclosed to, retained or used by, any other party. If you are not
an intended recipient then please promptly delete this e-mail and any attachment and all copies
and inform the sender. Thank you.


Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message