Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Elasticsearch Indexing

You're reading from  Elasticsearch Indexing

Product type Book
Published in Dec 2015
Publisher
ISBN-13 9781783987023
Pages 176 pages
Edition 1st Edition
Languages
Author (1):
Huseyin Akdogan Huseyin Akdogan
Profile icon Huseyin Akdogan

The relationship between mapping and relevant search results


It should be understood that how to store documents, control document metadata, data type of a field answer to questions, and so on, is through mapping. Similarly, as stated at the beginning of this chapter, using the mapping mechanism, we have answered how does mapping tokenize a field and analyze the field, it going to be searchable answers to questions, and so on, is also given by the mapping.

Now try to examine this situation closely through a simple scenario. Let's start with indexing that looks as follows:

curl -XPOST localhost:9200/blog/article -d '{"title":"HTML Introduction","category":["HTML"],"content":"HTML is a markup language for describing web documents...","publishdate":"10-01-2013","tags":["html","markup-language"]}'

curl -XPOST localhost:9200/blog/article -d '{"title":"NoSQL Concept and MongoDB","category":["NoSQL","BigData"],"content":"In recent years, we often hear the name of NoSQL as a new star...","publishdate...
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 $15.99/month. Cancel anytime}