Swathi Ragupathi
Swathi Ragupathi

Reputation: 33

Kibana - update default search query

I am new to elastic search and Kibana. In Kibana, while trying to fetch elastic search document in json, by default a bsearch query been executed with wildcard field search as below

fields: [{field: "*", include_unmapped: "true"}, {field: "timestamp", format: "date_time"}]

Elastic search - bsearch

This in turn returns all the document values as array under fields section. I need to turn off requesting fields in search query and its enough to have _source metadata in my json.

Fields-Json

How to update the default query been searched in kibana? Thanks in advance

Installed elastic search version - 7.17.3

Upvotes: 0

Views: 296

Answers (1)

Val
Val

Reputation: 217254

In Advanced Settings, you can turn on "Read fields from source" instead of using the Fields API, but it's soon going to be deprecated:

fields

Upvotes: 1

Related Questions