On 21 May 2013 09:12, Mike Hugo <m...@piragua.com> wrote:
> Is there a way to query for combinations of two sets of words?  For
> example, if I had
>
> (java or groovy or scala)
> (programming or coding or development)
>
> Is there a query parser that, at query time, would expand that into
> combinations like
>
> java programming
> groovy programming
> scala programming
> java coding
> java development
> ....
> etc etc etc

How many such combinations are there? If these are limited
in number, and can be pre-defined, the easiest way might be
to use synonyms:
http://wiki.apache.org/solr/AnalyzersTokenizersTokenFilters#solr.SynonymFilterFactory

If that does not meet your needs, you will probably need to
write a custom query parser, which is not too difficult:
http://wiki.apache.org/solr/SolrPlugins#QParserPlugin

Regards,
Gora

Reply via email to