How to translate a Solr query into Elasticsearch -
i'm trying express solr (lucene) query in elastic search, i'm not sure how:
q=field1:"value1"^10 or field2:("value2a"^20 or "value2b"^30) group=true group.field=fieldgroup
is there way pass lucene query es, don't need first translate it?
it's possible pass lucene query elasticsearch using query_string query. should plausible:
get /_search { "query": { "query_string": { "query": "field1:\"value1\"^10 or field2:(\"value2a\"^20 or \"value2b\"^30)" } } }
you can use aggregations mimic field collapsing: https://www.elastic.co/guide/en/elasticsearch/guide/current/top-hits.html
Comments
Post a Comment