Skip to Main Content
Elasticsearch 7 Quick Start Guide
book

Elasticsearch 7 Quick Start Guide

by Anurag Srivastava, Douglas Miller
October 2019
Beginner content levelBeginner
186 pages
5h 39m
English
Packt Publishing
Content preview from Elasticsearch 7 Quick Start Guide

Common options for the API response

We can hit the Elasticsearch APIs for getting the desired response, but if we want to modify the API response so that we change the display format or filter out some fields, then we can apply these options along with the query. There are some common options that can be applied to APIs, including the following:

  • For pretty formatted results, append ?pretty=true to any JSON request. This is recommended for debugging only. Let's take the example of kibana_sample_data_flights data to understand how we can prettify the results using the pretty keyword in the following expression:
GET kibana_sample_data_flights/_search?pretty

Using the previous expression, we can output the query result in a pretty format that ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Kibana 7 Quick Start Guide

Kibana 7 Quick Start Guide

Anurag Srivastava
Elasticsearch Indexing

Elasticsearch Indexing

Huseyin Akdogan

Publisher Resources

ISBN: 9781789803327Supplemental Content