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":"...