lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From AHMET ARSLAN <iori...@yahoo.com>
Subject Re: Expanding synonyms for both facets and response results
Date Thu, 24 Dec 2009 12:52:47 GMT

> I have used synonyms to provide translation from my keys to
> appropriate
> English text. When using facets, the field appropriately
> displays the
> synonym field: 
>      
>    <lst name="apt_type_en">
>       <int name="One Bedroom
> Apartment">2</int>
>     </lst>
> 
> but my result response does not translate the ID to text:
>         
> <doc>
>    <str
> name="apt_type_en">100</str>
> </doc>
> (I was expecting "One Bedroom Apartment" instead of 100)
> 
> How can I get the same synonym value both in Facet results
> and response
> results? 

Faceting is done on tokens. <result name="response"  returns the original value (not analyzed)
of documents.
Can you explain more what are you trying to do?

In db_apartment_types_en.txt file if you use comma (,) instead of => faceting will return
both:

<lst name="facet_fields">
            <lst name="apt_type_en">
                <int name="One Bedroom Apartment">2</int>
                <int name="200">2</int>
            </lst>
        </lst>


      

Mime
View raw message