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

Make script field usable in search-a-licious #181

Open
alexgarel opened this issue Jun 21, 2024 · 0 comments
Open

Make script field usable in search-a-licious #181

alexgarel opened this issue Jun 21, 2024 · 0 comments

Comments

@alexgarel
Copy link
Member

See https://www.elastic.co/guide/en/elasticsearch/reference/8.14/search-fields.html#script-fields

Script field should be defined in the yaml config.

  • define the field as other fields
  • define the script supporting parameters

The API should support a field_params parameter where I can put parameters for each scripted field I need eg: "field_params": {"field1": {"a": 1, "b": 2}, "field2": …

Those field are available only if we pass the parameters and only in POST search.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Backlog (ready for dev)
Development

No branches or pull requests

1 participant