ElasticSearch 6.2 Mapping Parameter description

Source: Internet
Author: User

Background:

Because I am using more than 6.0 of the version es, found in the use of a lot of Chinese is outdated. There are many parameter changes after ES6.0.

Now I summarize according to the official website mapping the newest parameter, hoped can be useful to everybody.

New fields:

Eager_global_ordinals

Deleted fields:

Include_in_all

The following is a detailed description of all the latest fields

{    "Analyzer":"Ik_max_word",#Specifies the word breaker, the most commonly used word breaker: Ik_max_word        "Normalizer":"Normalizer_name",#field normalization rules; If all characters are converted to lowercase, the following example    "Boost": 1.5,#field weights, which are used for query-time scoring, have a higher weight for key fields, 1 by default, and can be temporarily assigned weights when queried    "Coerce": true,#Clean Up Dirty data: 1, string will be cast to integer 2, floating-point number is cast to integer; default is True    "copy_to":"Field_name",#custom _all field; Specify a number of fields to be stitched into custom;    "doc_values": true,#faster sorting, aggregation operations, but requires additional storage space; default true, False for determining fields that do not require sorting and aggregation    "Dynamic": true,#new Field Dynamic Add true: Unlimited false: Data writable but the field does not retain ' strict ': Cannot write throw exception    "enabled": true,#will be indexed, but will be stored; For an entire _doc    "Fielddata": false,#speed up sorting and aggregation for text fields (Doc_values is not valid for text); This website does not recommend opening, very memory consumption    "eager_global_ordinals": true,#whether to turn on global preload to speed up queries; This parameter only supports text and Keyword,keyword by default, and text needs to set the Fielddata property        "format":"YYYY-MM-DD hh:mm:ss| | yyyy-mm-dd| | Epoch_millis",#formatting This parameter represents an acceptable time format of 3 accepted    "Ignore_above": 100,#Specifies the maximum value of the field index and the stored length, which is ignored if the maximum value is exceeded    "ignore_malformed": false,#Ignore type default is false type inconsistency cannot insert when inserting document    "index_options":"Docs" ,    #4 Optional Parameters    #Docs (Index document number),    #Freqs (document number + word frequency),    #positions (document number + Word frequency + position, usually used for distance query),    #Offsets (document number + Word frequency + position + offset, usually used in highlighted fields)    #The word breaker default is position, and the other default is Docs    "Index": true,#whether the field will be indexed and queryable by default true    " Fields": {"Raw": {"type":"keyword"}} ,#You can provide multiple indexing modes for a field, full-text search using the text type, or aggregation and sorting using the keyword type    "norms": true,#used to standardize the document so that the relevance of the document is calculated when queried. Recommended not to open    "Null_value":"NULL",#you can have a field that has a value of NULL explicitly indexed, searchable    "Position_increment_gap": 0,#phrase query can be cross-word query to become a word breaker default    "Properties": {},#nested properties, such as music, music, lyrics, genre, singers, etc.    "Search_analyzer":"Ik_max_word",#Query the word breaker; General Conditions and Analyzer correspondence        "Similarity":"BM25",#used to specify a document scoring model with three parameters:    #default scoring model for Bm25:es and Lucene    #CLASSIC:TF/IDF Ratings    #Boolean: Boolean model score    "Store": true,#by default, false, not really no storage, the _source field will save a copy of the original document.     #in some cases, the store parameter is meaningful, such as a document with a title, date, and a large content field, if you want to get only the title and date    "Term_vector":"No" #The default does not store vector information,    #Support parameter Yes (term store),    #with_positions (term + position),    #with_offsets (term + offset),    #With_positions_offsets (term + position + offset)    #Fast vector highlighter can improve performance, but opening will increase the index volume, not suitable for large data volume}normalizer Example: {"Settings": {    " Analysis": {      "Normalizer": {        "My_normalizer": {          "type":"Custom",          "Char_filter": [],          "Filter": ["lowercase","asciifolding"]        }      }    }  },  "Mappings": {    "type": {      "Properties": {        "Foo": {          "type":"keyword",          "Normalizer":"My_normalizer"}}}}}copy_to example: {"Mappings": {    "My_type": {      "Properties": {        "first_name": {          "type":"text",          "copy_to":"Full_name"        },        "last_name": {          "type":"text",          "copy_to":"Full_name"        },        "Full_name": {          "type":"text"        }      }    }  }}

ElasticSearch 6.2 Mapping Parameter description

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.