Elasticsearch query response

 

pretty

 

When we query directly on the url path, the returned json string is in a messy format. It is also easy to return a json string with a standardized format. At the end of the url request path, stitch it? The pretty keyword is fine

 

 

Specify the response field

 

In the response data, if we don't need all the fields, we can specify some required fields to return.

If you don't need to return metadata, just return the original data, you can do this:

Published 568 original articles · Like 180 · Visits 180,000+

Guess you like

Origin blog.csdn.net/Delicious_Life/article/details/105515704