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

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.

主站蜘蛛池模板: 徐汇区| 电白县| 霍州市| 嘉荫县| 长丰县| 丰台区| 砚山县| 鄢陵县| 云林县| 安福县| 平塘县| 松溪县| 南宫市| 汝州市| 宽甸| 卫辉市| 金秀| 嘉荫县| 桐庐县| 乳源| 屏东市| 穆棱市| 姜堰市| 四平市| 福安市| 乐安县| 浙江省| 肇源县| 武义县| 林口县| 嘉善县| 正蓝旗| 宾阳县| 许昌市| 仲巴县| 米泉市| 比如县| 怀化市| 邹城市| 临安市| 裕民县|