O'Reilly logo

Elasticsearch Indexing by Hüseyin Akdoğan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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"]}' ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required