官术网_书友最值得收藏!

Introduction

Mapping is the most important concept in ElasticSearch, as it defines how a search engine should process a document.

Search engines are mainly composed of two parts:

  • Indexing: This action takes a document and stores/indexes/processes it in an index
  • Searching: This action retrieves the data from the index

These two parts are strictly connected; an error in the indexing step leads to unwanted or missing search results.

ElasticSearch has explicit mapping on an index/type level. When indexing, if mapping is not provided, a default mapping is created, guessing the structure from the data fields that compose the document. Then, this new mapping is automatically propagated to all cluster nodes.

The default type mapping has sensible default values, but when you want to change their behavior you need to provide a new mapping definition.

In this chapter, we'll see all the possible types that compose the mappings.

主站蜘蛛池模板: 呼图壁县| 堆龙德庆县| SHOW| 平乐县| 会宁县| 克什克腾旗| 桂平市| 开江县| 合作市| 蓬溪县| 安康市| 剑川县| 萨嘎县| 贵港市| 沙河市| 凌云县| 西盟| 都江堰市| 康定县| 浦城县| 六安市| 武川县| 沁源县| 泽普县| 常宁市| 五大连池市| 富源县| 博客| 长沙市| 桑日县| 甘孜| 准格尔旗| 安化县| 东至县| 琼海市| 斗六市| 文水县| 长岭县| 景德镇市| 云阳县| 神木县|