When creating a mapping, setting a key to "properties" enables you to nest
fields. Does that mean that you can't name a field "properties"?
I ask because my documents have a field named properties. For example, check
out lines 32-34 here:
1-settings.js
// curl localhost:9200/development_products/_settings?pretty=true
{
"development_products" : {
"settings" : {
"index.analysis.filter.3_8_ngram.max_gram": "8",
"index.analysis.filter.3_8_ngram.type": "nGram",
"index.analysis.filter.3_8_ngram.min_gram": "3",
"index.analysis.analyzer.ascii_std.type": "custom",
"index.analysis.analyzer.ascii_std.tokenizer": "standard",
This file has been truncated. show original
2-mapping.js
// curl localhost:9200/development_products/_mapping?pretty=true
{
"development_products" : {
"product" : {
"properties" : {
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
This file has been truncated. show original
Is that valid?
kimchy
(Shay Banon)
October 14, 2011, 4:01pm
2
It should be ok, have you seen problems with it? One way to verify is to use
get mapping and check that the mappings you placed are the correct ones.
On Fri, Oct 14, 2011 at 4:13 PM, Nick Hoffman nick@deadorange.com wrote:
When creating a mapping, setting a key to "properties" enables you to nest
fields. Does that mean that you can't name a field "properties"?
I ask because my documents have a field named properties. For example,
check out lines 32-34 here:
1-settings.js · GitHub
Is that valid?
I grabbed the mapping via GET
(https://gist.github.com/6e935e022c759fbc8d61#file_2_mapping.js ), and the
structure looks correct to me. I just wasn't sure if "properties" is a
reserved word.