ElasticSearch faceted search for a multilingual field -


i have elasticsearch dsl query below,

query = {      "query": {"query_string": {"query": "%s" % q}},         "facets": {"destination": {             "terms": {"field": "destination"}}}} 

where destination indexed multilingual field below,

destination': {u'fr': u'portland', u'en': u'portland'} 

so facets result comes empty because of multingual issue. ideas?

query = {      "query": {"query_string": {"query": "%s" % q}},         "facets": {"destination": {             "terms": {"field": "destination.en"}}}} 

worked me


Popular posts from this blog

How to calculate SNR of signals in MATLAB? -

c# - Attempting to upload to FTP: System.Net.WebException: System error -

ios - UISlider customization: how to properly add shadow to custom knob image -