My application doesn't need any kind of boost/score, we do plain boolean
search. So I tried to disable norms at index time using dynamic template
like
"dynamic_templates" : [
..................................
....................................
,{
"template_apply_to_all_es_fields" : {
"match" : "*",
"mapping" : {
"type": "{dynamic_type}",
"omit_norms" : true,
"index_options" : "docs"
}
}
}
]
when I tried to save document it throws error:
{
"error": "MapperParsingException[failed to find type parsed [{dynamic_type}] for [person]]",
"status": 400
}
where 'person' is type of document and also the root node in the document.
Is "type": "{dynamic_type}" is not a correct usage in this case?
Is there any other way to disable norms for all fields including fields of
nested objects?
I know we can disable norms by putting "omit_norms" : true, "index_options"
: "docs" on every field mapping.
Thanks for your help!
-Yadu
--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.