# Query Isuue in elasticsearch 5.0

**URL:** <https://discuss.elastic.co/t/query-isuue-in-elasticsearch-5-0/66854>\
**Category:** Elasticsearch\
**Created:** [November 22, 2016, 12:14pm UTC](https://discuss.elastic.co/t/query-isuue-in-elasticsearch-5-0/66854 "2016-11-22T12:14:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![kartheek91](https://avatars.discourse-cdn.com/v4/letter/k/cc9497/32.png) [@kartheek91](https://discuss.elastic.co/u/kartheek91)\
**Post date:** [November 22, 2016, 12:14pm UTC](https://discuss.elastic.co/t/query-isuue-in-elasticsearch-5-0/66854/1 "2016-11-22T12:14:38Z")

</div>

I have written a query and I'm not able to get the result

{  
"\_index": "temp",  
"\_type": "try",  
"\_id": "1",  
"\_score": 1,  
"\_source": {  
"rank\_value": null,  
"euro\_deal\_value": 5.6,  
}

so when I'm trying to query  
GET dealytics/deal/\_search  
{  
"query": {  
"bool": {  
"should": [  
{  
"match": {  
"date\_announced": null  
}  
}  
]  
}  
}  
}

This is the query I'm getting  
{  
"error": {  
"root\_cause": [  
{  
"type": "parsing\_exception",  
"reason": "No text specified for text query",  
"line": 8,  
"col": 11  
}  
],  
"type": "parsing\_exception",  
"reason": "No text specified for text query",  
"line": 8,  
"col": 11  
},  
"status": 400  
}

---

<div class="post-metadata">

**Author:** ![mainec](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/mainec/32/5557_2.png) [@mainec](https://discuss.elastic.co/u/mainec)\
**Post date:** [November 22, 2016, 12:59pm UTC](https://discuss.elastic.co/t/query-isuue-in-elasticsearch-5-0/66854/2 "2016-11-22T12:59:06Z")

</div>

The error response already tells you what you are doing wrong here:

> [@kartheek91](#):
>
> "reason": "No text specified for text query",

Here:

> [@kartheek91](#):
>
> ```
> "match": {
> "date_announced": null
> }
> 
> ```

... you should actually specify some sort of text.

As an aside - for better readability, make sure to format you code like so:

```
GET dealytics/deal/_search
{
    "query": {
        "bool": {
            "should": [

```

---

<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:** [December 20, 2016, 12:59pm UTC](https://discuss.elastic.co/t/query-isuue-in-elasticsearch-5-0/66854/3 "2016-12-20T12:59:18Z")

</div>

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