Key points of knowledge:
Mapping the Understanding
( 1 ) toward es Insert data directly inside the es indexes are automatically built, and type and the corresponding Mapping
( 2 ) Mapping automatically defines each of the Field the data type.
( 3 " different data types (such as text and date exact value There are some full text
( 4 ) for Exact value , the whole value is built into the inverted index as a keyword when the participle is created and the inverted index is established; Full text , will pass through participle, normaliztion and so on, before the entries that have been processed are built into the inverted index.
(5)Exact valueand theFull texttwo different types ofFieldIt was decided that, in a single search, theExact valueof theFieldor aFull textof theFieldThe behavior of the search is also different, consistent with the behavior of creating inverted indexes;Exact valuewhen searching, it is to match the whole value directly, forFull textis to first use the same word breakerquery stringafter processing the word breaker, go to the inverted index to search.
( 6 ) can be used es Bring your own Dynamic Mapping , let it automatically establish Mapping , including setting the data type automatically, or you can manually create it in advance Index and the type of the Mapping , their own on the various Field settings, including data types, including index behavior, including word breakers, etc.
Comprehensive: Mapping , is Index of the type the metadata for each type have one of their own Mapping , determines the type of data, the behavior of creating inverted indexes, and the behavior of searching.
Understanding of 43.mapping