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
Arrow up icon
GO TO TOP
Elasticsearch  Indexing

You're reading from   Elasticsearch Indexing How to Improve User's Search Experience

Arrow left icon
Product type Paperback
Published in Dec 2015
Publisher
ISBN-13 9781783987023
Length 176 pages
Edition 1st Edition
Arrow right icon
Author (1):
Arrow left icon
Huseyin Akdogan Huseyin Akdogan
Author Profile Icon Huseyin Akdogan
Huseyin Akdogan
Arrow right icon
View More author details
Toc

Basic concepts and definitions

As stated in the previous chapter, mapping is the process of defining how a document should be mapped to Elasticsearch (if you don't recall, please refer to the Mapping section in the previous chapter). How a field is tokenized, analyzed, and searchable can be found using the mapping mechanism. Keep in mind that mapping is actually a schema definition (we will examine it in detail at the end of this chapter).

Now let's review the basic concepts and definitions.

Metadata fields

All the fields are not returned to us when a document is requested but each document has auto-generated metadata fields with each mapping which have information about the document that allows us to control how the metadata document is indexed. For example, which fields will return with the query results, how long the document will live, and so on.

We will now examine some of those fields.

_source

We have already talked at length about the _source field in Chapter 1, Introduction...

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 $19.99/month. Cancel anytime
Banner background image