KB Article #183158

Re-index issue with FAH Studio - unexpected docvalues type SORTED_NUMERIC for field

Problem

Upon upgrading FAH Studio to a higher Update, some elements in the configuration could need reindexing. Typically, an error would show up in the UI:

Error occurred while requesting data. Please contact your administrator

The following error occurs in the Studio log:

ERROR [servlet.support.ErrorPageFilter] [t-6] Forwarding to error page from request [/api/v1.0/workspace/Default/search/text] due to exception [unexpected docvalues type SORTED_NUMERIC for field 'version' (expected=NUMERIC). Re-index with correct docvalues type.]
java.lang.IllegalStateException: unexpected docvalues type SORTED_NUMERIC for field 'version' (expected=NUMERIC). Re-index with correct docvalues type.


Resolution

The reindexing of the data can be done using the index-rest internal REST-API, using Swagger. To access Swagger, you need to login into Studio, then add "/swagger-ui/" after "/studio-web" in your browser's address bar, typically:

https://[your_hostname]:[your_port]/studio-web/swagger-ui/


Then, switch from Customer API and select Internal api in the upper right corner of your screen.


You would need to use the index-rest/reindexUsingPOST API using an empty json: