> 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>