Parse Failure : failed to parse source


(chocoheim) #1

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

(system) #2