1

I have a Elasticsearch DSL query like below,

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

where my destination indexed as a multilingual field like below,

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

So my facets result comes empty because of this multingual issue. Any ideas?

4

1 回答 1

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

为我工作

于 2013-04-25T11:17:22.673 回答