Hello, 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? The details about my configuration are below. I am using solr 1.4 release. Here is the result from Solr: <response> <lst name="responseHeader"> <int name="status">0</int> <int name="QTime">0</int> <lst name="params"> <str name="facet">true</str> <str name="fl">apt_type_en</str> <str name="sort" /> <str name="start">0</str> <str name="q">*:*</str> <str name="facet.field">apt_type_en</str> <arr name="rows"> <str>10</str> <str>0</str> </arr> </lst> </lst> <result name="response" numFound="2" start="0"> <doc> <str name="apt_type_en">100</str> </doc> <doc> <str name="apt_type_en">100</str> </doc> </result> <lst name="facet_counts"> <lst name="facet_queries" /> <lst name="facet_fields"> <lst name="apt_type_en"> <int name="One Bedroom Apartment">2</int> </lst> </lst> <lst name="facet_dates" /> </lst> </response> =======schema.xml============ Here is how I defined the field. This is designed to translate IDs such as 100, 200, etc into text values defined by db_apartment_types_en.txt <fieldType name="enAptType" class="solr.TextField" sortMissingLast="true" omitNorms="true"> <analyzer> <tokenizer class="solr.KeywordTokenizerFactory"/> <filter class="solr.SynonymFilterFactory" synonyms="db_apartment_types_en.txt" ignoreCase="false" expand="true"/> </analyzer> </fieldType> <field name="apt_type_en" type="enAptType" indexed="true" stored="true" multivalued="false" termvectors="false"/> =======db_apartment_types_en.txt============ #this is the synonym file which is supposed to expand IDs to English text. 100=>One\ Bedroom\ Apartment 200=>Two\ Bedroom\ Apartment -- View this message in context: http://old.nabble.com/Expanding-synonyms-for-both-facets-and-response-results-tp26912229p26912229.html Sent from the Solr - User mailing list archive at Nabble.com.