Search icon CANCEL
Subscription
0
Cart icon
Your Cart (0 item)
Close icon
You have no products in your basket yet
Arrow left icon
Explore Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Free Learning
Arrow right icon
Elasticsearch  Indexing
Elasticsearch  Indexing

Elasticsearch Indexing: How to Improve User's Search Experience

Arrow left icon
Profile Icon Huseyin Akdogan
Arrow right icon
AU$20.98 AU$29.99
eBook Dec 2015 176 pages 1st Edition
eBook
AU$20.98 AU$29.99
Paperback
AU$37.99
Subscription
Free Trial
Renews at AU$24.99p/m
Arrow left icon
Profile Icon Huseyin Akdogan
Arrow right icon
AU$20.98 AU$29.99
eBook Dec 2015 176 pages 1st Edition
eBook
AU$20.98 AU$29.99
Paperback
AU$37.99
Subscription
Free Trial
Renews at AU$24.99p/m
eBook
AU$20.98 AU$29.99
Paperback
AU$37.99
Subscription
Free Trial
Renews at AU$24.99p/m

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Table of content icon View table of contents Preview book icon Preview Book

Elasticsearch Indexing

Chapter 2. What is an Elasticsearch Index

In the previous chapter, we looked at what the difference is when a field becomes indexed and searchable and at how the analysis process affects the relevant search results. In this chapter, we will dive deep into the concept of the Elasticsearch index. Therefore, we will first go through basic concepts. Then we will examine the inverted index data structure. By the end of this chapter, we will have covered the following topics:

  • What is dynamic mapping?
  • What is denormalization?
  • Is index flexible?
  • What is the inverted index?

Nature of the Elasticsearch index

Let's go through the basic concepts of Elasticsearch indices and their features.

Indices

Elasticsearch is document-oriented. Each record in Elasticsearch is a document. Elasticsearch uses JSON (JavaScript Object Notation) as the serialization format for documents. Therefore, each piece of data that is sent to Elasticsearch for indexing is a JSON document.

Tip

JSON is an open standard format that uses human-readable text to transmit data objects consisting of attribute–value pairs. If you want more information, please refer to https://en.wikipedia.org/wiki/JSON.

Elasticsearch indices compared to database management systems may be considered to be databases. How a database is a collection of regular information, Elasticsearch indices are a collection of structured JSON document. In other words, an index is a logical partition for user data.

Documents are stored in the same index of similar characteristics, for example, your member data in the member...

Document

In the Elasticsearch world (that is, in Lucene world), a document is the main entity and basic unit of user data.

As mentioned earlier, the document format is JSON. Documents consist of fields (that is, properties) and value pairs. Each field has a name and a type supporting existing data types. A field is stored physically in a type within an index as an element of a document that has a unique ID.

Now, let's send a document to Elasticsearch:

curl -XPOST localhost:9200/premierleague/topscorer -d '{
  "fullname": "Robin van Persie",
  "age": 32,
  "birthdate": "1983-08-06",
"current_club": "Fenerbahce SK"
}'
{"_index":"premierleague","_type":"topscorer","_id":"AU8I47O90qdql2fUT1Oh","_version":1,"created":true}

As seen, we indexed the document without any preparation. Because Elasticsearch is schema-less, it does not request...

Summary

In this chapter, we looked at the nature of the Elasticsearch index and reviewed the basic concepts: what dynamic mapping is, what it means, flexibility in the index, and what the inverted index is.

In the next chapter, you'll learn about the basic mapping concept: what basic mapping is, what the relationship between mapping and relevant search results is, Is the claim about 'Elasticsearch stands for the schema-free model' always true?, and some other subjects related to this topic.

Left arrow icon Right arrow icon

Key benefits

  • Improve user’s search experience with the correct configuration
  • Deliver relevant search results – fast!
  • Save time and system resources by creating stable clusters

Description

Beginning with an overview of the way ElasticSearch stores data, you’ll begin to extend your knowledge to tackle indexing and mapping, and learn how to configure ElasticSearch to meet your users’ needs. You’ll then find out how to use analysis and analyzers for greater intelligence in how you organize and pull up search results – to guarantee that every search query is met with the relevant results! You’ll explore the anatomy of an ElasticSearch cluster, and learn how to set up configurations that give you optimum availability as well as scalability. Once you’ve learned how these elements work, you’ll find real-world solutions to help you improve indexing performance, as well as tips and guidance on safety so you can back up and restore data. Once you’ve learned each component outlined throughout, you will be confident that you can help to deliver an improved search experience – exactly what modern users demand and expect.

Who is this book for?

If you understand the importance of a great search experience this book will show you exactly how to build one with ElasticSearch, one of the world’s leading search servers.

What you will learn

  • Learn how ElasticSearch efficiently stores data – and find out how it can reduce costs
  • Control document metadata with the correct mapping strategies and by configuring indices
  • Use ElasticSearch analysis and analyzers to incorporate greater intelligence and organization across your documents and data
  • Find out how an ElasticSearch cluster works – and learn the best way to configure it
  • Perform high-speed indexing with low system resource cost
  • Improve query relevance with appropriate mapping, suggest API, and other ElasticSearch functionalities

Product Details

Country selected
Publication date, Length, Edition, Language, ISBN-13
Publication date : Dec 30, 2015
Length: 176 pages
Edition : 1st
Language : English
ISBN-13 : 9781783987030
Vendor :
Elastic
Category :

What do you get with eBook?

Product feature icon Instant access to your Digital eBook purchase
Product feature icon Download this book in EPUB and PDF formats
Product feature icon Access this title in our online reader with advanced features
Product feature icon DRM FREE - Read whenever, wherever and however you want
OR
Modal Close icon
Payment Processing...
tick Completed

Billing Address

Product Details

Publication date : Dec 30, 2015
Length: 176 pages
Edition : 1st
Language : English
ISBN-13 : 9781783987030
Vendor :
Elastic
Category :

Packt Subscriptions

See our plans and pricing
Modal Close icon
AU$24.99 billed monthly
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Simple pricing, no contract
AU$249.99 billed annually
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts
AU$349.99 billed in 18 months
Feature tick icon Unlimited access to Packt's library of 7,000+ practical books and videos
Feature tick icon Constantly refreshed with 50+ new titles a month
Feature tick icon Exclusive Early access to books as they're written
Feature tick icon Solve problems while you work with advanced search and reference features
Feature tick icon Offline reading on the mobile app
Feature tick icon Choose a DRM-free eBook or Video every month to keep
Feature tick icon PLUS own as many other DRM-free eBooks or Videos as you like for just AU$5 each
Feature tick icon Exclusive print discounts

Frequently bought together


Stars icon
Total AU$ 175.97
Elasticsearch  Indexing
AU$37.99
Monitoring Elasticsearch
AU$53.99
Elasticsearch Server - Third Edition
AU$83.99
Total AU$ 175.97 Stars icon
Banner background image

Table of Contents

9 Chapters
1. Introduction to Efficient Indexing Chevron down icon Chevron up icon
2. What is an Elasticsearch Index Chevron down icon Chevron up icon
3. Basic Concepts of Mapping Chevron down icon Chevron up icon
4. Analysis and Analyzers Chevron down icon Chevron up icon
5. Anatomy of an Elasticsearch Cluster Chevron down icon Chevron up icon
6. Improving Indexing Performance Chevron down icon Chevron up icon
7. Snapshot and Restore Chevron down icon Chevron up icon
8. Improving the User Search Experience Chevron down icon Chevron up icon
Index Chevron down icon Chevron up icon
Get free access to Packt library with over 7500+ books and video courses for 7 days!
Start Free Trial

FAQs

How do I buy and download an eBook? Chevron down icon Chevron up icon

Where there is an eBook version of a title available, you can buy it from the book details for that title. Add either the standalone eBook or the eBook and print book bundle to your shopping cart. Your eBook will show in your cart as a product on its own. After completing checkout and payment in the normal way, you will receive your receipt on the screen containing a link to a personalised PDF download file. This link will remain active for 30 days. You can download backup copies of the file by logging in to your account at any time.

If you already have Adobe reader installed, then clicking on the link will download and open the PDF file directly. If you don't, then save the PDF file on your machine and download the Reader to view it.

Please Note: Packt eBooks are non-returnable and non-refundable.

Packt eBook and Licensing When you buy an eBook from Packt Publishing, completing your purchase means you accept the terms of our licence agreement. Please read the full text of the agreement. In it we have tried to balance the need for the ebook to be usable for you the reader with our needs to protect the rights of us as Publishers and of our authors. In summary, the agreement says:

  • You may make copies of your eBook for your own use onto any machine
  • You may not pass copies of the eBook on to anyone else
How can I make a purchase on your website? Chevron down icon Chevron up icon

If you want to purchase a video course, eBook or Bundle (Print+eBook) please follow below steps:

  1. Register on our website using your email address and the password.
  2. Search for the title by name or ISBN using the search option.
  3. Select the title you want to purchase.
  4. Choose the format you wish to purchase the title in; if you order the Print Book, you get a free eBook copy of the same title. 
  5. Proceed with the checkout process (payment to be made using Credit Card, Debit Cart, or PayPal)
Where can I access support around an eBook? Chevron down icon Chevron up icon
  • If you experience a problem with using or installing Adobe Reader, the contact Adobe directly.
  • To view the errata for the book, see www.packtpub.com/support and view the pages for the title you have.
  • To view your account details or to download a new copy of the book go to www.packtpub.com/account
  • To contact us directly if a problem is not resolved, use www.packtpub.com/contact-us
What eBook formats do Packt support? Chevron down icon Chevron up icon

Our eBooks are currently available in a variety of formats such as PDF and ePubs. In the future, this may well change with trends and development in technology, but please note that our PDFs are not Adobe eBook Reader format, which has greater restrictions on security.

You will need to use Adobe Reader v9 or later in order to read Packt's PDF eBooks.

What are the benefits of eBooks? Chevron down icon Chevron up icon
  • You can get the information you need immediately
  • You can easily take them with you on a laptop
  • You can download them an unlimited number of times
  • You can print them out
  • They are copy-paste enabled
  • They are searchable
  • There is no password protection
  • They are lower price than print
  • They save resources and space
What is an eBook? Chevron down icon Chevron up icon

Packt eBooks are a complete electronic version of the print edition, available in PDF and ePub formats. Every piece of content down to the page numbering is the same. Because we save the costs of printing and shipping the book to you, we are able to offer eBooks at a lower cost than print editions.

When you have purchased an eBook, simply login to your account and click on the link in Your Download Area. We recommend you saving the file to your hard drive before opening it.

For optimal viewing of our eBooks, we recommend you download and install the free Adobe Reader version 9.