Other search parameters

Some of the request body search parameters are easy to understand and access. Descriptions of these parameters are combined in the following table:

Parameter

docvalue_fields

Description

This parameter allows you to get the doc_value fields in the response for each hit.

Please refer to the Mapping parameters section in Chapter 4, Mapping APIs, for the doc_values.

Example

"docvalue_fields": ["field_1", {"field":"field_2", "format":"format_2"},...]

script_fields

Description

This parameter allows you to specify a test script to evaluate a field

and show the field in each hit of the response body.

Example

"script_fields": {"test": {"script": "doc['symbol']"}}

stored_fields

Description ...

Get Advanced Elasticsearch 7.0 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.