# Parse Failure \[No query specified in search request\]

**URL:** <https://discuss.elastic.co/t/parse-failure-no-query-specified-in-search-request/3238>\
**Category:** Elasticsearch\
**Created:** [August 19, 2010, 9:53am UTC](https://discuss.elastic.co/t/parse-failure-no-query-specified-in-search-request/3238 "2010-08-19T09:53:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajgamer](https://avatars.discourse-cdn.com/v4/letter/a/7ab992/32.png) [@ajgamer](https://discuss.elastic.co/u/ajgamer)\
**Post date:** [August 19, 2010, 9:53am UTC](https://discuss.elastic.co/t/parse-failure-no-query-specified-in-search-request/3238/1 "2010-08-19T09:53:25Z")

</div>

Hi,

I get to see a lot of "Parse Failure [No query specified in search  
request]" errors which i did not see with in version 0.8(I'm using 0.9  
BTW). The complete stack trace is as follows:

[00:40:18,372][DEBUG][action.search.type] [Nova, Cassandra]  
[tournament][1], node[3c5ec3b2-66b8-4ece-8936-0b6075522360], [P],  
s[STARTED]: Failed to execute  
[org.elasticsearch.action.search.SearchRequest@23112757]  
org.elasticsearch.search.SearchParseException: [tournament][1]:  
query[null],from[0],size[10]: Parse Failure [No query specified in  
search request]  
at  
org.elasticsearch.search.query.QueryPhase.preProcess(QueryPhase.java:  
67)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:  
311)  
at  
org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
166)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
129)  
at  
org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction  
$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
77)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:194)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction.access$000(TransportSearchTypeAction.java:80)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction  
$BaseAsyncAction$1.run(TransportSearchTypeAction.java:153)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.runTask(ThreadPoolExecutor.java:886)  
at java.util.concurrent.ThreadPoolExecutor  
$Worker.run(ThreadPoolExecutor.java:908)  
at java.lang.Thread.run(Thread.java:619)

What may be the reason for this error?

P.S: Let me know if you want any more info on this.

Thanks.

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [August 19, 2010, 11:55am UTC](https://discuss.elastic.co/t/parse-failure-no-query-specified-in-search-request/3238/2 "2010-08-19T11:55:56Z")

</div>

Can you send the code you use to execute the search that fails (and the  
query)? It means that for some reason, either there was no query element in  
the search request, or something is wrong with the parsing.

-shay.banon

On Thu, Aug 19, 2010 at 12:53 PM, ajgamer [abie.joseph14@gmail.com](mailto:abie.joseph14@gmail.com) wrote:

> Hi,
> 
> I get to see a lot of "Parse Failure [No query specified in search  
> request]" errors which i did not see with in version 0.8(I'm using 0.9  
> BTW). The complete stack trace is as follows:
> 
> [00:40:18,372][DEBUG][action.search.type] [Nova, Cassandra]  
> [tournament][1], node[3c5ec3b2-66b8-4ece-8936-0b6075522360], [P],  
> s[STARTED]: Failed to execute  
> [org.elasticsearch.action.search.SearchRequest@23112757]  
> org.elasticsearch.search.SearchParseException: [tournament][1]:  
> query[null],from[0],size[10]: Parse Failure [No query specified in  
> search request]  
> at  
> org.elasticsearch.search.query.QueryPhase.preProcess(QueryPhase.java:  
> 67)  
> at  
> org.elasticsearch.search.SearchService.createContext(SearchService.java:  
> 311)  
> at
> 
> org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:  
> 166)  
> at
> 
> org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:  
> 129)  
> at  
> org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction
> 
> $AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:  
> 77)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:194)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction.access$000(TransportSearchTypeAction.java:80)  
> at org.elasticsearch.action.search.type.TransportSearchTypeAction  
> $BaseAsyncAction$1.run(TransportSearchTypeAction.java:153)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.runTask(ThreadPoolExecutor.java:886)  
> at java.util.concurrent.ThreadPoolExecutor  
> $Worker.run(ThreadPoolExecutor.java:908)  
> at java.lang.Thread.run(Thread.java:619)
> 
> What may be the reason for this error?
> 
> P.S: Let me know if you want any more info on this.
> 
> Thanks.

---

<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:** [July 6, 2017, 4:20am UTC](https://discuss.elastic.co/t/parse-failure-no-query-specified-in-search-request/3238/3 "2017-07-06T04:20:34Z")

</div>


