Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Query templates allow only "string" placeholders #70

Open
agazzarini opened this issue Jan 14, 2019 · 0 comments
Open

Query templates allow only "string" placeholders #70

agazzarini opened this issue Jan 14, 2019 · 0 comments
Labels
enhancement New feature or request

Comments

@agazzarini
Copy link
Member

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 agazzarini added the enhancement New feature or request label Jan 14, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant