lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lee Carroll <>
Subject Re: multi value field search
Date Sun, 18 Dec 2011 12:36:28 GMT
You could use a synonyms file for the alternative names. That way you
do not need to store only index the alternatives.
For faceting use a field were the analysis chain does not use the
synonyms filter. For search the analysis chain will.
You also get the benefit of only storing the normative values so
display is easy.

On 18 December 2011 02:16, Michael Ryan <> wrote:
>> The problem I have is that at search time, I have faceting turned on for
>> this field and therefore, I get the four facets "canadian", "imperial",
>> "bank", and "commerce", which all refer to the same record.
>> How can I go about searching for any word contained in the company name but
>> then return the entire company name as one facet?
> The typical way to do this is to have two fields with the same data - one for faceting
and one for searching. The faceted field can just be a plain StrField.
> -Michael

View raw message