Query Isuue in elasticsearch 5.0

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
}

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

Here:

... 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": [

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