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

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.

主站蜘蛛池模板: 宁波市| 固阳县| 舒城县| 台湾省| 尉犁县| 客服| 缙云县| 东至县| 明星| 吉隆县| 柳江县| 新沂市| 兴业县| 东阳市| 新闻| 临潭县| 水城县| 百色市| 乌兰察布市| 绥化市| 柞水县| 仙居县| 岳阳市| 久治县| 和平区| 景德镇市| 徐州市| 攀枝花市| 黄浦区| 连州市| 阿拉尔市| 蒙城县| 固镇县| 富顺县| 门源| 长海县| 大丰市| 屏边| 宁武县| 嫩江县| 和静县|