# DSL Queries not returning document

**URL:** <https://discuss.elastic.co/t/dsl-queries-not-returning-document/80765>\
**Category:** Elasticsearch\
**Created:** [March 31, 2017, 12:59am UTC](https://discuss.elastic.co/t/dsl-queries-not-returning-document/80765 "2017-03-31T00:59:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![gkalanidhi](https://avatars.discourse-cdn.com/v4/letter/g/278dde/32.png) [@gkalanidhi](https://discuss.elastic.co/u/gkalanidhi)\
**Post date:** [March 31, 2017, 12:59am UTC](https://discuss.elastic.co/t/dsl-queries-not-returning-document/80765/1 "2017-03-31T00:59:22Z")

</div>

HI  
From our index few of the document able to access through only like  
GET ent/prd/44998290

but when we try to get following ways are not working.

-- based on ids

GET ent/prd/\_search  
{  
"query": {  
"ids": {  
"values": [44998290]  
}  
}  
}

-- i made sure that PRD\_ID is existing in the document from the output we got  
-- from first search lite query

-- term filter

GET ent/prd/\_search  
{  
"query": {  
"term": {  
"PRD\_ID":44998290  
}  
}  
}

-- match filter

GET ent/prd/\_search  
{  
"query": {  
"match": {  
"PRD\_ID":44998290  
}  
}  
}

can any one help us to understand this issue. Please.

Thanks  
Kalanidhi

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [March 31, 2017, 4:39am UTC](https://discuss.elastic.co/t/dsl-queries-not-returning-document/80765/2 "2017-03-31T04:39:42Z")

</div>

Can you show examples of the data too?

Also, please use code formatting to make it easier to read 🙂

---

<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:** [April 28, 2017, 4:39am UTC](https://discuss.elastic.co/t/dsl-queries-not-returning-document/80765/3 "2017-04-28T04:39:46Z")

</div>

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