Skip to content

Instantly share code, notes, and snippets.

@leiyazhen
Created September 13, 2013 01:49
Show Gist options
  • Save leiyazhen/6546015 to your computer and use it in GitHub Desktop.
Save leiyazhen/6546015 to your computer and use it in GitHub Desktop.
{
"COMM_MANDEPTINFO": {
"_all": {
"enable": "true",
"term_vector": "yes"
},
"properties": {
"UNITNAME": {
"type": "multi_field",
"fields": {
"UNITNAME": {
"type": "string",
"store": "yes",
"term_verctor": "with_positions_offsets",
"index": "analyzed",
"index_analyzer": "ik",
"search_analyzer": "ik",
"include_in_all": "true",
"boost": 1
},
"suggest": {
"type": "completion",
"index_analyzer": "simple",
"search_analyzer": "simple",
"preserve_position_increments": "true",
"payloads": "true"
}
}
},
"UNITLINKMAN": {
"type": "string",
"index_analyzer": "ik",
"search_analyzer": "ik",
"include_in_all": "true",
"store": "yes",
"term_verctor": "with_positions_offsets",
"index": "analyzed",
"boost": 1
},
"TELEPHONE": {
"type": "string",
"index_analyzer": "ik",
"search_analyzer": "ik",
"include_in_all": "true",
"store": "yes",
"term_verctor": "with_positions_offsets",
"index": "analyzed",
"boost": 1
},
"SUBRELATION": {
"type": "string",
"index_analyzer": "ik",
"search_analyzer": "ik",
"include_in_all": "true",
"store": "yes",
"term_verctor": "with_positions_offsets",
"index": "analyzed",
"boost": 1
},
"索引时间": {
"type": "date",
"index_name": "AAA",
"index": "analyzed",
"store": "yes",
"format": "yyyy/MM/dd HH:mm:ss",
"boost": 1,
"include_in_all": "true"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment