# Getting SearchPhaseExecutionException from elastic search 1.4

**URL:** <https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545>\
**Category:** Elasticsearch\
**Created:** [March 6, 2015, 5:49am UTC](https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545 "2015-03-06T05:49:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Vijayakumari\_B\_N](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@Vijayakumari\_B\_N](https://discuss.elastic.co/u/Vijayakumari_B_N)\
**Post date:** [March 6, 2015, 5:49am UTC](https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545/1 "2015-03-06T05:49:58Z")

</div>

Hi,

I am trying to search some text using elastic search server, with some  
indexing. I am using default shards and i did not modify anything in my  
elasticsearch.yml. My application was working fine. I did another indexing  
for another application where i want to load different data, I have not  
tested this yet. I came back and trying to run my first application, i am  
getting the below error. my elastic search is not working.

Can someone please help me where i am doing wrong.?

Query 1 :: {  
"multi\_match" : {  
"query" : "new year",  
"fields" : ["keywords", "symptom"]  
}  
}  
org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to  
execute phase [query], all shards failed; shardFailures  
{[aslVcGTvTz68YZOza7Wqsg][problem][0]: SearchParseException[[problem][0]:  
query[((keywords:new keywords:year) | (symptom:new  
symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
[{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
nested: SearchParseException[[problem][0]: query[((keywords:new  
keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
Failure [No mapping found for [id] in order to sort on]];  
}{[aslVcGTvTz68YZOza7Wqsg][problem][1]: SearchParseException[[problem][1]:  
query[((keywords:new keywords:year) | (symptom:new  
symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
[{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
nested: SearchParseException[[problem][1]: query[((keywords:new  
keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
Failure [No mapping found for [id] in order to sort on]];  
}{[aslVcGTvTz68YZOza7Wqsg][problem][2]: SearchParseException[[problem][2]:  
query[((keywords:new keywords:year) | (symptom:new  
symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
[{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
nested: SearchParseException[[problem][2]: query[((keywords:new  
keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
Failure [No mapping found for [id] in order to sort on]];  
}{[aslVcGTvTz68YZOza7Wqsg][problem][3]: SearchParseException[[problem][3]:  
query[((keywords:new keywords:year) | (symptom:new  
symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
[{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
nested: SearchParseException[[problem][3]: query[((keywords:new  
keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
Failure [No mapping found for [id] in order to sort on]];  
}{[aslVcGTvTz68YZOza7Wqsg][problem][4]: SearchParseException[[problem][4]:  
query[((keywords:new keywords:year) | (symptom:new  
symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
[{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
nested: SearchParseException[[problem][4]: query[((keywords:new  
keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
Failure [No mapping found for [id] in order to sort on]]; }  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)  
at  
org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:565)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)

below is the error from elasticsearch server log file.

[2015-03-06 11:17:24,997][DEBUG][action.search.type] [Magma]  
[problem][1], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
execute [org.elasticsearch.action.search.SearchRequest@78fc50a1] lastShard  
[true]  
org.elasticsearch.search.SearchParseException: [problem][1]:  
query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
[Failed to parse source  
[{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)  
at  
org.elasticsearch.search.SearchService.createContext(SearchService.java:537)  
at  
org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:509)  
at  
org.elasticsearch.search.SearchService.executeDfsPhase(SearchService.java:194)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:197)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:194)  
at  
org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
at  
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
at  
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
at java.lang.Thread.run(Thread.java:745)  
Caused by: org.elasticsearch.search.SearchParseException: [problem][1]:  
query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure [No  
mapping found for [id] in order to sort on]  
at  
org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:210)  
at  
org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:184)  
at  
org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:665)  
... 9 more  
[2015-03-06 11:17:25,000][DEBUG][action.search.type] [Magma]  
[problem][4], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
execute [org.elasticsearch.action.search.SearchRequest@78fc50a1]  
org.elasticsearch.search.SearchParseException: [problem][4]:  
query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
[Failed to parse source  
[{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
at  
org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)

Thanks,  
Vijaya

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![jpountz](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/jpountz/32/45836_2.png) [@jpountz](https://discuss.elastic.co/u/jpountz)\
**Post date:** [March 6, 2015, 8:34am UTC](https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545/2 "2015-03-06T08:34:28Z")

</div>

The relevant error message is the following: "No mapping found for [id] in  
order to sort on".

It means that you are sorting on a field which does not exist on at least  
one of the queried indices.

See

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

for more information.

On Fri, Mar 6, 2015 at 6:49 AM, Vijayakumari B N [vijayakumari.bn@gmail.com](mailto:vijayakumari.bn@gmail.com)  
wrote:

> Hi,
> 
> I am trying to search some text using Elasticsearch server, with some  
> indexing. I am using default shards and i did not modify anything in my  
> elasticsearch.yml. My application was working fine. I did another indexing  
> for another application where i want to load different data, I have not  
> tested this yet. I came back and trying to run my first application, i am  
> getting the below error. my Elasticsearch is not working.
> 
> Can someone please help me where i am doing wrong.?
> 
> Query 1 :: {  
> "multi\_match" : {  
> "query" : "new year",  
> "fields" : ["keywords", "symptom"]  
> }  
> }  
> org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to  
> execute phase [query], all shards failed; shardFailures  
> {[aslVcGTvTz68YZOza7Wqsg][problem][0]: SearchParseException[[problem][0]:  
> query[((keywords:new keywords:year) | (symptom:new  
> symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> nested: SearchParseException[[problem][0]: query[((keywords:new  
> keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> Failure [No mapping found for [id] in order to sort on]];  
> }{[aslVcGTvTz68YZOza7Wqsg][problem][1]: SearchParseException[[problem][1]:  
> query[((keywords:new keywords:year) | (symptom:new  
> symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> nested: SearchParseException[[problem][1]: query[((keywords:new  
> keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> Failure [No mapping found for [id] in order to sort on]];  
> }{[aslVcGTvTz68YZOza7Wqsg][problem][2]: SearchParseException[[problem][2]:  
> query[((keywords:new keywords:year) | (symptom:new  
> symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> nested: SearchParseException[[problem][2]: query[((keywords:new  
> keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> Failure [No mapping found for [id] in order to sort on]];  
> }{[aslVcGTvTz68YZOza7Wqsg][problem][3]: SearchParseException[[problem][3]:  
> query[((keywords:new keywords:year) | (symptom:new  
> symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> nested: SearchParseException[[problem][3]: query[((keywords:new  
> keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> Failure [No mapping found for [id] in order to sort on]];  
> }{[aslVcGTvTz68YZOza7Wqsg][problem][4]: SearchParseException[[problem][4]:  
> query[((keywords:new keywords:year) | (symptom:new  
> symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> nested: SearchParseException[[problem][4]: query[((keywords:new  
> keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> Failure [No mapping found for [id] in order to sort on]]; }  
> at  
> org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)  
> at  
> org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:565)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:745)
> 
> below is the error from elasticsearch server log file.
> 
> [2015-03-06 11:17:24,997][DEBUG][action.search.type] [Magma]  
> [problem][1], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
> execute [org.elasticsearch.action.search.SearchRequest@78fc50a1]  
> lastShard [true]  
> org.elasticsearch.search.SearchParseException: [problem][1]:  
> query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
> [Failed to parse source  
> [{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)  
> at  
> org.elasticsearch.search.SearchService.createContext(SearchService.java:537)  
> at  
> org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:509)  
> at  
> org.elasticsearch.search.SearchService.executeDfsPhase(SearchService.java:194)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:197)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:194)  
> at  
> org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
> at  
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> at  
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> at java.lang.Thread.run(Thread.java:745)  
> Caused by: org.elasticsearch.search.SearchParseException: [problem][1]:  
> query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure [No  
> mapping found for [id] in order to sort on]  
> at  
> org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:210)  
> at  
> org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:184)  
> at  
> org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:665)  
> ... 9 more  
> [2015-03-06 11:17:25,000][DEBUG][action.search.type] [Magma]  
> [problem][4], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
> execute [org.elasticsearch.action.search.SearchRequest@78fc50a1]  
> org.elasticsearch.search.SearchParseException: [problem][4]:  
> query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
> [Failed to parse source  
> [{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
> at  
> org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)
> 
> Thanks,  
> Vijaya
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com)  
> [https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com?utm_medium=email&utm_source=footer)  
> .  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6ZteTSPA6Yk3mc0fGEQmK54N7noFdR8tYydicFV%2Bm5Pg%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAL6Z4j6ZteTSPA6Yk3mc0fGEQmK54N7noFdR8tYydicFV%2Bm5Pg%40mail.gmail.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Vijayakumari\_B\_N](https://avatars.discourse-cdn.com/v4/letter/v/da6949/32.png) [@Vijayakumari\_B\_N](https://discuss.elastic.co/u/Vijayakumari_B_N)\
**Post date:** [March 9, 2015, 6:58am UTC](https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545/3 "2015-03-09T06:58:53Z")

</div>

Thanks for the reply.

On Friday, March 6, 2015 at 2:04:40 PM UTC+5:30, Adrien Grand wrote:

> The relevant error message is the following: "No mapping found for [id] in  
> order to sort on".
> 
> It means that you are sorting on a field which does not exist on at least  
> one of the queried indices.
> 
> See  
> [Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/search-request-sort.html#_ignoring_unmapped_fields)  
> for more information.
> 
> On Fri, Mar 6, 2015 at 6:49 AM, Vijayakumari B N \<[vijayak...@gmail.com](mailto:vijayak...@gmail.com)  
> \<javascript:\>\> wrote:
> 
> > Hi,
> > 
> > I am trying to search some text using Elasticsearch server, with some  
> > indexing. I am using default shards and i did not modify anything in my  
> > elasticsearch.yml. My application was working fine. I did another indexing  
> > for another application where i want to load different data, I have not  
> > tested this yet. I came back and trying to run my first application, i am  
> > getting the below error. my Elasticsearch is not working.
> > 
> > Can someone please help me where i am doing wrong.?
> > 
> > Query 1 :: {  
> > "multi\_match" : {  
> > "query" : "new year",  
> > "fields" : ["keywords", "symptom"]  
> > }  
> > }  
> > org.elasticsearch.action.search.SearchPhaseExecutionException: Failed to  
> > execute phase [query], all shards failed; shardFailures  
> > {[aslVcGTvTz68YZOza7Wqsg][problem][0]: SearchParseException[[problem][0]:  
> > query[((keywords:new keywords:year) | (symptom:new  
> > symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> > [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> > year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> > nested: SearchParseException[[problem][0]: query[((keywords:new  
> > keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> > Failure [No mapping found for [id] in order to sort on]];  
> > }{[aslVcGTvTz68YZOza7Wqsg][problem][1]: SearchParseException[[problem][1]:  
> > query[((keywords:new keywords:year) | (symptom:new  
> > symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> > [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> > year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> > nested: SearchParseException[[problem][1]: query[((keywords:new  
> > keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> > Failure [No mapping found for [id] in order to sort on]];  
> > }{[aslVcGTvTz68YZOza7Wqsg][problem][2]: SearchParseException[[problem][2]:  
> > query[((keywords:new keywords:year) | (symptom:new  
> > symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> > [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> > year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> > nested: SearchParseException[[problem][2]: query[((keywords:new  
> > keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> > Failure [No mapping found for [id] in order to sort on]];  
> > }{[aslVcGTvTz68YZOza7Wqsg][problem][3]: SearchParseException[[problem][3]:  
> > query[((keywords:new keywords:year) | (symptom:new  
> > symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> > [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> > year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> > nested: SearchParseException[[problem][3]: query[((keywords:new  
> > keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> > Failure [No mapping found for [id] in order to sort on]];  
> > }{[aslVcGTvTz68YZOza7Wqsg][problem][4]: SearchParseException[[problem][4]:  
> > query[((keywords:new keywords:year) | (symptom:new  
> > symptom:year))],from[0],size[10]: Parse Failure [Failed to parse source  
> > [{"from":0,"size":10,"query":{"multi\_match":{"query":"new  
> > year","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}],"highlight":{"phrase\_limit":1}}]]];  
> > nested: SearchParseException[[problem][4]: query[((keywords:new  
> > keywords:year) | (symptom:new symptom:year))],from[0],size[10]: Parse  
> > Failure [No mapping found for [id] in order to sort on]]; }  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction.onFirstPhaseResult(TransportSearchTypeAction.java:233)  
> > at  
> > org.elasticsearch.action.search.type.TransportSearchTypeAction$BaseAsyncAction$1.onFailure(TransportSearchTypeAction.java:179)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:565)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:745)
> > 
> > below is the error from elasticsearch server log file.
> > 
> > [2015-03-06 11:17:24,997][DEBUG][action.search.type] [Magma]  
> > [problem][1], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
> > execute [org.elasticsearch.action.search.SearchRequest@78fc50a1] lastShard  
> > [true]  
> > org.elasticsearch.search.SearchParseException: [problem][1]:  
> > query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
> > [Failed to parse source  
> > [{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
> > at  
> > org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)  
> > at  
> > org.elasticsearch.search.SearchService.createContext(SearchService.java:537)  
> > at  
> > org.elasticsearch.search.SearchService.createAndPutContext(SearchService.java:509)  
> > at  
> > org.elasticsearch.search.SearchService.executeDfsPhase(SearchService.java:194)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:197)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction$3.call(SearchServiceTransportAction.java:194)  
> > at  
> > org.elasticsearch.search.action.SearchServiceTransportAction$23.run(SearchServiceTransportAction.java:559)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)  
> > at  
> > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)  
> > at java.lang.Thread.run(Thread.java:745)  
> > Caused by: org.elasticsearch.search.SearchParseException: [problem][1]:  
> > query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure [No  
> > mapping found for [id] in order to sort on]  
> > at  
> > org.elasticsearch.search.sort.SortParseElement.addSortField(SortParseElement.java:210)  
> > at  
> > org.elasticsearch.search.sort.SortParseElement.addCompoundSortField(SortParseElement.java:184)  
> > at  
> > org.elasticsearch.search.sort.SortParseElement.parse(SortParseElement.java:86)  
> > at  
> > org.elasticsearch.search.SearchService.parseSource(SearchService.java:665)  
> > ... 9 more  
> > [2015-03-06 11:17:25,000][DEBUG][action.search.type] [Magma]  
> > [problem][4], node[aslVcGTvTz68YZOza7Wqsg], [P], s[STARTED]: Failed to  
> > execute [org.elasticsearch.action.search.SearchRequest@78fc50a1]  
> > org.elasticsearch.search.SearchParseException: [problem][4]:  
> > query[(keywords:jvm | symptom:jvm)],from[-1],size[-1]: Parse Failure  
> > [Failed to parse source  
> > [{"query":{"multi\_match":{"query":"jvm","fields":["keywords","symptom"]}},"sort":[{"id":{"order":"asc"}}]}]]  
> > at  
> > org.elasticsearch.search.SearchService.parseSource(SearchService.java:681)
> > 
> > Thanks,  
> > Vijaya
> > 
> > --  
> > You received this message because you are subscribed to the Google Groups  
> > "elasticsearch" group.  
> > To unsubscribe from this group and stop receiving emails from it, send an  
> > email to [elasticsearc...@googlegroups.com](mailto:elasticsearc...@googlegroups.com) \<javascript:\>.  
> > To view this discussion on the web visit  
> > [https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com)  
> > [https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/6a1b83d0-ace4-472c-be0a-c981adb101b5%40googlegroups.com?utm_medium=email&utm_source=footer)  
> > .  
> > For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).
> 
> --  
> Adrien Grand

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/934c6844-6583-47f4-9178-8b66b0c3390b%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/934c6844-6583-47f4-9178-8b66b0c3390b%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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, 12:27am UTC](https://discuss.elastic.co/t/getting-searchphaseexecutionexception-from-elastic-search-1-4/22545/4 "2017-07-06T00:27:49Z")

</div>


