rated-ranking-evaluator icon indicating copy to clipboard operation
rated-ranking-evaluator copied to clipboard

Query templates allow only "string" placeholders

Open agazzarini opened this issue 6 years ago • 0 comments

That has been raised in a scenario where Elasticsearch is used as a search platform. If we have a query template like this:

{
  "query": {
    "multi_match": {
      "query": "$query",
      "fields": ["title^10","overview"]
    }
  }
}

we cannot declare, as a placeholder, the whole fields array. In that scenario, the change between v1.0 and v1.1 was about a different fields list, so the only chance was to create two (almost equal) query templates, each of one with a different fields list.

agazzarini avatar Jan 14 '19 14:01 agazzarini