is there a way to see one document indexed result. is the fields matching the mapping type
I don't understand the question.
Are you looking for:
GET your_index/your_type/the_id
?
no.
ive made a dynamic templates,
and post one doc to it.
i dont know whether any fileds in the doc do not match the rules defined in dynamic templates
im testing one field to one filed now
and how to store nested doc without index.
i need store nested doc with small size.
and then it is still easy to append new nested doc to the nested field
{
"nested1" :[
{ "t", "tv" },
.....
]
}
i need appending doc to nested1.but do not index any doc in it.
may these option work?
"index":false?
"doc_value":false?
"enabled":false?
"dynamic":false?
"Arrays of objects do not work as you would expect: you cannot query each object independently of the other objects in the array."
does this mean array could work ?
array will not be indexed?
if i set index : false to the array filed. i dont have to set index:false to earch field in object in array?
but now it says : No handler for type [array] declared on field
Could you provide a full recreation script as described in
It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.
i think ive found the answer.
"area_part":{
"match_pattern": "regex",
"path_match": "^\\d+.\\d+.\\d+$",
"mapping":{
"type": "nested",
"index":false,
"enabled":false,
"doc_value":false,
"dynamic":false
}
}
here is my new mapping. new nested doc can be appened to this field "^\d+.\d+.\d+$". and element in this nested array will not be indexed.
i hope the query effciency would be fast, when query one filed of "^\d+.\d+.\d+$" fields.
when i get the new mapping after post one doc. it seems work. no new fields created by es.
but it seems not working as except when i query.
here is a new mapping
"area_part":{
"match_pattern": "regex",
"path_match": "^\\d+.\\d+$",
"mapping":{
"type": "object",
"index":false,
"enabled":false,
"doc_value":false,
"dynamic":false
}
}
here is a doc post to the mapping
{
"2": {
"20170804" :{
"7": [{"loc":[1, 2], "ts":1}],
"5": [{"loc":[1, 2], "ts":1}]
}
}
}
i could still specify "7", "5" in query. like:
{
"_source": ["2.20170804.7"],
"query": {
"match_all": {}
}
}
i could specify source to "7" which should not be analyse.
Could you provide a full recreation script as described in
It will help to better understand what you are doing.
Please, try to keep the example as simple as possible.
thank you. i think i misunderstanding . the value of object will not be indexed
This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.