# Get the score for a document with String id

**URL:** <https://discuss.elastic.co/t/get-the-score-for-a-document-with-string-id/316596>\
**Category:** Elasticsearch\
**Created:** [October 14, 2022, 6:35am UTC](https://discuss.elastic.co/t/get-the-score-for-a-document-with-string-id/316596 "2022-10-14T06:35:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![karthik\_sagar](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/karthik_sagar/32/101541_2.png) [@karthik\_sagar](https://discuss.elastic.co/u/karthik_sagar)\
**Post date:** [October 14, 2022, 6:35am UTC](https://discuss.elastic.co/t/get-the-score-for-a-document-with-string-id/316596/1 "2022-10-14T06:35:00Z")

</div>

Hi everyone,

Here is a sample document I have with document id as string datatype. For one of my query I was expecting ~1000 records but the returned count is 10 documents less. I wanted to understand why some documents were not returned.

Have tried to use \_explain API, however the API expects document id to be string, [Explain API | Elasticsearch Guide [8.4] | Elastic](https://www.elastic.co/guide/en/elasticsearch/reference/current/search-explain.html)

Is there any other way to find why a document was not returned for a query ?

```auto
{
    "id": "test"
    "field1": "",
    "field2": ""
}

```

---

<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:** [October 14, 2022, 6:47am UTC](https://discuss.elastic.co/t/get-the-score-for-a-document-with-string-id/316596/2 "2022-10-14T06:47:55Z")

</div>

Welcome!

Could you share the response?

---

<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:** [November 11, 2022, 6:48am UTC](https://discuss.elastic.co/t/get-the-score-for-a-document-with-string-id/316596/3 "2022-11-11T06:48:43Z")

</div>

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