Search icon CANCEL
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Conferences
Free Learning
Arrow right icon
Arrow up icon
GO TO TOP
Elasticsearch 7 Quick Start Guide

You're reading from   Elasticsearch 7 Quick Start Guide Get up and running with the distributed search and analytics capabilities of Elasticsearch

Arrow left icon
Product type Paperback
Published in Oct 2019
Publisher Packt
ISBN-13 9781789803327
Length 186 pages
Edition 1st Edition
Arrow right icon
Authors (2):
Arrow left icon
Douglas Miller Douglas Miller
Author Profile Icon Douglas Miller
Douglas Miller
Anurag Srivastava Anurag Srivastava
Author Profile Icon Anurag Srivastava
Anurag Srivastava
Arrow right icon
View More author details
Toc

Introduction to data search

Elasticsearch provides a search option for queries, strings, and even bodies of text. Most search APIs are multi-index, meaning that they can be applied over multiple indices; the exception to multi-index will be explained in this chapter.

To illustrate searching properly, let's look at a specific example throughout this chapter—searching for a Facebook user. When performing a search, the routing parameter is used to point to the location of the shards in the indices that are to be searched. The following example will route to the user called cactus_flower:

POST facebook/_doc?routing=cactus_flower
{
"user": "cactus_flower",
"postDate": "2017-05-19T13:10:02",
"message": "Just looking for the user Cactus Flower"
}

This search is known as a round-robin between replicas, where each...

lock icon The rest of the chapter is locked
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €18.99/month. Cancel anytime