# Parse Failure : failed to parse source

**URL:** <https://discuss.elastic.co/t/parse-failure-failed-to-parse-source/14878>\
**Category:** Elasticsearch\
**Created:** [December 16, 2013, 5:45am UTC](https://discuss.elastic.co/t/parse-failure-failed-to-parse-source/14878 "2013-12-16T05:45:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![chocoheim](https://avatars.discourse-cdn.com/v4/letter/c/779978/32.png) [@chocoheim](https://discuss.elastic.co/u/chocoheim)\
**Post date:** [December 16, 2013, 5:45am UTC](https://discuss.elastic.co/t/parse-failure-failed-to-parse-source/14878/1 "2013-12-16T05:45:48Z")

</div>

why did this happen?

elasticsearch log :  
[2013-12-16 09:47:31,849][DEBUG][action.search.type] [ES\_NODE\_BINS\_1] [omp\_news\_201312][0], node[BhjiKQr7TUGIcxHWlJbKBw], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@2867bafd]  
org.elasticsearch.search.SearchParseException: [omp\_news\_201312][0]: from[0],size[0]: Parse Failure [Failed to parse source [{"from":0,"size":0,"query":{"bool":{"must":[{"query\_string":{"query":"","fields":["COMPOUND\_WORD.KEYWORD"],"default\_operator":"and"}},{"terms":{"CHANNEL":["product","news","cafe","blog","sns"],"minimum\_should\_match":"1"}},{"terms":{"SITE":["daum","twitter","naver","basket"],"minimum\_should\_match":"1"}},{"range":{"POST\_DATE":{"from":"2013-08-31T15:00:00.000Z","to":"2013-12-07T15:00:00.000Z","include\_lower":true,"include\_upper":true}}}],"should":[{"term":{"LINKED\_PAIR.KEYWORD\_A":""}},{"term":{"LINKED\_PAIR.KEYWORD\_B":""}}],"minimum\_should\_match":"1"}},"fields":"DOCID","facets":{"dateHistogram":{"date\_histogram":{"field":"POST\_DATE","interval":"day"}}}}]]  
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:561)  
at org.elasticsearch.search.SearchService.createContext(SearchService.java:464)  
at org.elasticsearch.search.SearchService.createContext(SearchService.java:449)  
at org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:442)  
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:214)  
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:202)  
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:216)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:203)  
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:186)  
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:662)  
Caused by: org.elasticsearch.index.query.QueryParsingException: [omp\_news\_201312] Failed to parse query []  
at org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:231)  
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at org.elasticsearch.index.query.BoolQueryParser.parse(BoolQueryParser.java:93)  
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:207)  
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:281)  
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:255)  
at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33)  
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:549)  
... 12 more  
Caused by: org.apache.lucene.queryparser.classic.ParseException: Cannot parse '': Encountered "" at line 1, column 0.  
Was expecting one of:  
 ...  
"+" ...  
"-" ...  
 ...  
"(" ...  
"_" ...  
 ...  
 ...  
 ...  
 ...  
 ...  
"[" ...  
"{" ...  
 ...  
 ...  
"_" ...

```
at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:126)
at org.elasticsearch.index.query.QueryStringQueryParser.parse(QueryStringQueryParser.java:214)
... 19 more

```

Caused by: org.apache.lucene.queryparser.classic.ParseException: Encountered "" at line 1, column 0.  
Was expecting one of:  
 ...  
"+" ...  
"-" ...  
 ...  
"(" ...  
"_" ...  
 ...  
 ...  
 ...  
 ...  
 ...  
"[" ...  
"{" ...  
 ...  
 ...  
"_" ...

```
at org.apache.lucene.queryparser.classic.QueryParser.generateParseException(QueryParser.java:708)
at org.apache.lucene.queryparser.classic.QueryParser.jj_consume_token(QueryParser.java:590)
at org.apache.lucene.queryparser.classic.QueryParser.Clause(QueryParser.java:275)
at org.apache.lucene.queryparser.classic.QueryParser.Query(QueryParser.java:181)
at org.apache.lucene.queryparser.classic.QueryParser.TopLevelQuery(QueryParser.java:170)
at org.apache.lucene.queryparser.classic.QueryParserBase.parse(QueryParserBase.java:121)
... 20 more
```

---

<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, 2:01am UTC](https://discuss.elastic.co/t/parse-failure-failed-to-parse-source/14878/2 "2017-07-06T02:01:08Z")

</div>


