Skip to content

Instantly share code, notes, and snippets.

@Kinghack
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Kinghack/9799129 to your computer and use it in GitHub Desktop.
Save Kinghack/9799129 to your computer and use it in GitHub Desktop.
{
"Ad" : {
"properties" : {
"id" : {
"type" : "long",
"store" : "yes"
},
"title" : {
"type" : "string",
"index" : "analyzed",
"analyzer" : "ik"
},
"position" : {
"type" : "geo_shape"
},
"content" : {
"type" : "string",
"index" : "analyzed",
"analyzer" : "ik"
},
"价格" : {
"type" : "float",
"ignore_malformed":true
},
"工资" : {
"type" : "float",
"ignore_malformed":true
},
"contact" : {
"type" : "string",
"index" : "not_analyzed"
},
"contacts" : {
"type" : "string",
"analyzer" : "tags"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment