November Happy Hour will be moved to Thursday December 5th.

Server unavailable when search query with sorting runs

Vote:
 

We have a search in our website implemented using EPiServer Find. It has a sorting option such as 'Sort by number of views' which is based on a int property. 

Strange thing is this sorting works for most of the times and occationally it fails with following Java ClassCastException error.

EPiServer.Find.ServiceException: 'The remote server returned an error: (503) Server Unavailable.
ReduceSearchPhaseException[Failed to execute phase [query], [reduce] ]; nested: ClassCastException[java.lang.Double cannot be cast to java.lang.Long]; '

Anyyone has a clue why this server error occurs randomly? 

#201280
Feb 12, 2019 8:05
Vote:
 

Hi Helani,

Can you share line of codes which includes the creating of search query and declaration of that int property. That will be helpful to identify the problem.

Thanks.

#201851
Mar 05, 2019 13:10
Vote:
 

Are you using a demo/developer find index?
We have this issue from time to time that Episerver find servers are Unavailable, for our local environment where we are using developer index.

Usually we open a ticket about it, but most of the case it will start to work again pretty quickly. 

#202162
Mar 18, 2019 9:52
Vote:
 

This was the issue and solved by applying the suggested workaround;

https://world.episerver.com/blogs/Son-Do/Dates/2018/7/sorting-issue-in-episerver-find-13-0-1/

#202873
Apr 03, 2019 8:06
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.