[Elastic search v6.2] What is the way to replace a field value from another value in search query itself

I want to set up a preprocessor for search query field for which the specific value will be replaced from a set of values before the search query execution.

The purpose to preprocess a value from set of values is to reduce the network latency due by reducing query size.

I know ingest node provides preprocess capability before indexing but I want similar feature in search query

If your goal is to reduce the query size, you can look at https://www.elastic.co/guide/en/elasticsearch/reference/current/search-template.html

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.