You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by 李学健 <li...@staff.ourgame.com> on 2009/02/13 10:07:10 UTC

abbreviation problem

hi, all

to abbreviation, for example, 'US', how can i get results containing
'United States' in solr or lucene?
in solr, synonyms filter, it seems only to handle one-word to one-word.
but in abbreviation queries, words should be expanded.

any body has a goods solution to that ?

--steven.li


Re: abbreviation problem

Posted by Koji Sekiguchi <ko...@r.email.ne.jp>.
李学健 wrote:
> hi, all
>
> to abbreviation, for example, 'US', how can i get results containing
> 'United States' in solr or lucene?
> in solr, synonyms filter, it seems only to handle one-word to one-word.
> but in abbreviation queries, words should be expanded.
>
>   
SynonymFilter should support one word to phrase (two words or more),
phrase to one word and phrase to phrase. For example:

US, United States

or

US => United States

or

United States => US

Cheers,

Koji