Created
March 15, 2011 16:05
-
-
Save wizidot/870938 to your computer and use it in GitHub Desktop.
my mapping
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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