Skip to content

Instantly share code, notes, and snippets.

@wizidot
Created March 15, 2011 16:05
Show Gist options
  • Save wizidot/870938 to your computer and use it in GitHub Desktop.
Save wizidot/870938 to your computer and use it in GitHub Desktop.
my mapping
I've got to update my mapping with this 3 new fields.
and i'm wonder if is enhance for facets ?
thanks.
curl -XPOST localhost:9200/places -d '{
"mappings" : {
"place" : {
"properties" : {
"cat1":{
"type" : "multi_field",
"fields" : {
"name" : {
"omit_term_freq_and_positions" : false,
"omit_norms" : false,
"store" : "yes",
"term_vector" : "no",
"type" : "string",
"index" : "analyzed"
"boost" : 2.3
},
"untouched" : {
"omit_term_freq_and_positions" : true,
"omit_norms" : true,
"store" : "yes",
"type" : "string",
"term_vector" : "no",
"index" : "not_analyzed"
}
}
},
"cat2":{
"type" : "multi_field",
"fields" : {
"name" : {
"omit_term_freq_and_positions" : false,
"omit_norms" : false,
"store" : "yes",
"term_vector" : "no",
"type" : "string",
"index" : "analyzed"
"boost" : 2.2
},
"untouched" : {
"omit_term_freq_and_positions" : true,
"omit_norms" : true,
"store" : "yes",
"type" : "string",
"term_vector" : "no",
"index" : "not_analyzed"
}
}
},
"cat3":{
"type" : "multi_field",
"fields" : {
"name" : {
"omit_term_freq_and_positions" : false,
"omit_norms" : false,
"store" : "yes",
"term_vector" : "no",
"type" : "string",
"index" : "analyzed"
"boost" : 2.1
},
"untouched" : {
"omit_term_freq_and_positions" : true,
"omit_norms" : true,
"store" : "yes",
"type" : "string",
"term_vector" : "no",
"index" : "not_analyzed"
}
}
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment