Skip to content

Instantly share code, notes, and snippets.

@Vineeth-Mohan
Created March 9, 2012 09:20
Show Gist options
  • Save Vineeth-Mohan/2005802 to your computer and use it in GitHub Desktop.
Save Vineeth-Mohan/2005802 to your computer and use it in GitHub Desktop.
[2012-03-09 14:22:00,736][DEBUG][action.search.type ] [Nico Minoru] [algotree][0], node[JOCa1SFtRH2wb8M4mRwUNA], [P], s[STARTED]: Failed to execute [org.elasticsearch.action.search.SearchRequest@6b6257]
org.elasticsearch.search.SearchParseException: [algotree][0]: from[-1],size[-1]: Parse Failure [Failed to parse source [{"query":{"has_child":{"type":"attachment","query":{"query_string":{"default_field":"Content","query":"five"}}}}}]]
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:557)
at org.elasticsearch.search.SearchService.createContext(SearchService.java:469)
at org.elasticsearch.search.SearchService.executeQueryPhase(SearchService.java:228)
at org.elasticsearch.search.action.SearchServiceTransportAction.sendExecuteQuery(SearchServiceTransportAction.java:140)
at org.elasticsearch.action.search.type.TransportSearchQueryThenFetchAction$AsyncAction.sendExecuteFirstPhase(TransportSearchQueryThenFetchAction.java:80)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:204)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.performFirstPhase(TransportSearchTypeAction.java:191)
at org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$2.run(TransportSearchTypeAction.java:177)
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: [algotree] [has_child] Type [attachment] does not have parent mapping
at org.elasticsearch.index.query.HasChildQueryParser.parse(HasChildQueryParser.java:101)
at org.elasticsearch.index.query.QueryParseContext.parseInnerQuery(QueryParseContext.java:192)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:243)
at org.elasticsearch.index.query.IndexQueryParserService.parse(IndexQueryParserService.java:223)
at org.elasticsearch.search.query.QueryParseElement.parse(QueryParseElement.java:33)
at org.elasticsearch.search.SearchService.parseSource(SearchService.java:545)
... 10 more
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment