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

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.

主站蜘蛛池模板: 澳门| 兴文县| 全州县| 莒南县| 甘南县| 依兰县| 乐安县| 南平市| 北票市| 敦煌市| 玉山县| 兰西县| 墨竹工卡县| 黔西县| 漳州市| 柳江县| 克拉玛依市| 望谟县| 辽阳市| 新化县| 汾阳市| 九江市| 安福县| 斗六市| 大田县| 泸西县| 师宗县| 岫岩| 荣昌县| 韩城市| 灵武市| 乐至县| 栾川县| 高雄县| 岳阳市| 乌兰浩特市| 桂林市| 石渠县| 休宁县| 海晏县| 崇礼县|