# QueryShardException: No mapping found for \[sortOrder\] in order to sort on

**URL:** <https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927>\
**Category:** Elasticsearch\
**Created:** [February 2, 2021, 3:40am UTC](https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927 "2021-02-02T03:40:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Haunh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haunh/32/83257_2.png) [@Haunh](https://discuss.elastic.co/u/Haunh)\
**Post date:** [February 2, 2021, 3:40am UTC](https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927/1 "2021-02-02T03:40:00Z")

</div>

Hi Everyone!  
I connect Fess to external Elastic then have error after created index of fess :  
**QueryShardException: No mapping found for [sortOrder] in order to sort on**

Below is version of Fess & Elastic

Elastic :

> {  
> "name" : "URG6Bz5",  
> "cluster\_name" : "elasticsearch",  
> "cluster\_uuid" : "EBB6PgrmTCeIyQ6XXfcLbA",  
> "version" : {  
> "number" : "6.6.1",  
> "build\_flavor" : "default",  
> "build\_type" : "zip",  
> "build\_hash" : "1fd8f69",  
> "build\_date" : "2019-02-13T17:10:04.160291Z",  
> "build\_snapshot" : false,  
> "lucene\_version" : "7.6.0",  
> "minimum\_wire\_compatibility\_version" : "5.6.0",  
> "minimum\_index\_compatibility\_version" : "5.0.0"  
> },  
> "tagline" : "You Know, for Search"  
> }

Fess Version: 12.5

I removed REM in content of fess.in.bat:

> set FESS\_JAVA\_OPTS=%FESS\_JAVA\_OPTS% -Dfess.es.http\_address=[http://localhost:9200](http://localhost:9200)  
> set FESS\_JAVA\_OPTS=%FESS\_JAVA\_OPTS% -Dfess.es.transport\_addresses=localhost:9300  
> set FESS\_JAVA\_OPTS=%FESS\_JAVA\_OPTS% -Dfess.dictionary.path=D:/option/elasticsearch-6.6.1/config/

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [February 2, 2021, 3:47am UTC](https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927/2 "2021-02-02T03:47:03Z")

</div>

Welcome to our community! 😃  
Please don't post pictures of text, they are difficult to read, impossible to search and replicate (if it's code), and some people may not be even able to see them 🙂

What is fess?

Also 6.6 is [EOL](https://www.elastic.co/support/eol), please upgrade ASAP.

---

<div class="post-metadata">

**Author:** ![Haunh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/haunh/32/83257_2.png) [@Haunh](https://discuss.elastic.co/u/Haunh)\
**Post date:** [February 2, 2021, 3:56am UTC](https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927/3 "2021-02-02T03:56:18Z")

</div>

Hi warkolm!  
Thanks for you supported!  
I will remove picture in post.  
I will post question to FESS forum!

---

<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:** [March 2, 2021, 3:57am UTC](https://discuss.elastic.co/t/queryshardexception-no-mapping-found-for-sortorder-in-order-to-sort-on/262927/4 "2021-03-02T03:57:09Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
