# Is there a way to see one document indexed result. is the fields matching the mapping type

**URL:** <https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877>\
**Category:** Elasticsearch\
**Created:** [August 4, 2017, 11:56am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877 "2017-08-04T11:56:15Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 4, 2017, 11:56am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/1 "2017-08-04T11:56:15Z")

</div>

is there a way to see one document indexed result. is the fields matching the mapping type

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 12:32pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/2 "2017-08-04T12:32:55Z")

</div>

I don't understand the question.

Are you looking for:

```auto
GET your_index/your_type/the_id

```

?

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 4, 2017, 1:19pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/3 "2017-08-04T13:19:21Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 4, 2017, 1:35pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/4 "2017-08-04T13:35:54Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 4, 2017, 1:43pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/5 "2017-08-04T13:43:31Z")

</div>

"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

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 4, 2017, 3:41pm UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/6 "2017-08-04T15:41:26Z")

</div>

Could you provide a full recreation script as described in

> [@About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21):
>
> The heart of the free and open Elastic Stack Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data for lightning fast search, fine‑tuned relevancy, and powerful analytics that scale with ease. warning PLEASE READ THIS SECTION IF IT'S YOUR FIRST POST Some useful links: [elasticsearch reference guide](http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)[elasticsearch user guide](http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html)[elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html)[elasticsearch cl…](https://www.elastic.co/guide/en/elasticsearch/client/index.html)

It will help to better understand what you are doing.  
Please, try to keep the example as simple as possible.

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 5, 2017, 1:25am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/7 "2017-08-05T01:25:16Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 5, 2017, 1:37am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/8 "2017-08-05T01:37:28Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [August 5, 2017, 1:54am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/9 "2017-08-05T01:54:08Z")

</div>

Could you provide a full recreation script as described in

> [@About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21):
>
> The heart of the free and open Elastic Stack Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data for lightning fast search, fine‑tuned relevancy, and powerful analytics that scale with ease. warning PLEASE READ THIS SECTION IF IT'S YOUR FIRST POST Some useful links: [elasticsearch reference guide](http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)[elasticsearch user guide](http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html)[elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html)[elasticsearch cl…](https://www.elastic.co/guide/en/elasticsearch/client/index.html)

It will help to better understand what you are doing.  
Please, try to keep the example as simple as possible.

---

<div class="post-metadata">

**Author:** ![Red](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Red](https://discuss.elastic.co/u/Red)\
**Post date:** [August 5, 2017, 1:58am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/10 "2017-08-05T01:58:44Z")

</div>

> [@dadoonet](#):
>
> 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

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [September 2, 2017, 1:58am UTC](https://discuss.elastic.co/t/is-there-a-way-to-see-one-document-indexed-result-is-the-fields-matching-the-mapping-type/95877/11 "2017-09-02T01:58:49Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
