es string participle complete example

  1. "products_name_en": {  

  2.          "Type": "string", // string type  

  3.          "Index": "analyzed" // word, regardless of the word is: not_analyzed, set to no, the field will not be indexed  

  4.          "Analyzer": "ik" // specified word breaker  

  5.          "Boost": 1.23 // score weighting field level  

  6.           "Doc_values": false // for not_analyzed field, are enabled by default, segmentation field can not be used for sorting and aggregation can improve the performance of large, memory-saving  

  7.           "Fielddata": { "format": "disabled"} // for word field, can improve performance when involved in sorting or aggregation, regardless of the unified field is recommended to use the word doc_value  

  8.           "Fields": { "raw": { "type": "string", "index": "not_analyzed"}} // may provide a plurality of index field mode, the value of the same field, a word, not a Participle  

  9.           "Ignore_above": 100 // more than 100 characters of text, it will be ignored and not indexed  

  10.           "Include_in_all": ture // Sets whether this field contains _all field, the default is true, unless the index is set to no options  

  11.           "Index_options": "docs" // 4 optional parameter docs (documents index number), freqs (document number + word frequency), positions (Document No. + + word frequency position, distance usually used to query), offsets (Document No. + Frequencies + + offset position, is generally used in the field highlighted) word field default position, other default docs  

  12.           "Norms": { "enable": true, "loading": "lazy"} // word field default configuration, regardless of the word fields: Default { "enable": false}, when the memory length factor and index Boost, suggested the need ratings field use, extra memory consumption increases  

  13.           "Null_value": "NULL" // set some initial values ​​of the missing fields, only the string can be used, null value word field will be word  

  14.           "Position_increament_gap": 0 // impact or proximity queries from query, the data may be provided on the multi-value field lit word field, can specify the interval slop query, the default value is 100  

  15.            "Store": false // whether to set this field alone is stored separated from _source field, the default is false, only the search, could not get the value  

  16.            "Search_analyzer": "ik" // set word breaker when the search default is consistent with ananlyzer, such as standard + ngram with the index when used with a standard automatic prompts to complete the search  

  17.            "Similarity": "BM25" // default TF / IDF algorithm, specify a field rate policy, only valid for string and word type  

  18.            "Term_vector": "no" // default does not store the vector information, support parameter yes (term storage), with_positions (term + position), with_offsets (term + offset), with_positions_offsets (term + location + offset) for quick highlight fast vector highlighter can improve performance, but will increase the open volume index, not suitable for a large amount of data  

  19.       }  

Guess you like

Origin www.cnblogs.com/fly-kaka/p/11301716.html