timestamp field configuration error

Created on 15 June 2020, over 4 years ago
Updated 26 September 2023, about 1 year ago

I'm using search API SOLR version 4.1.1 with SOLR 8.5.2, I have followed the solr configurations instruction.. configured the index, downloaded the config.zip , extracted the content and put in the proper index config folder, then restarted solr . during the drupal indexing I'm getting the following issue in the log messages:

Drupal\search_api_solr\SearchApiSolrException while trying to index items on index xyz-site: Solr endpoint http://ip-address:8983/ unreachable or returned unexpected response code (400). { "responseHeader":{ "status":400, "QTime":146}, "error":{ "metadata":[ "error-class","org.apache.solr.common.SolrException", "root-error-class","java.lang.IllegalArgumentException"], "msg":"Exception writing document id ssoexo-xyx-site-entity:node/13056:en to the index; possible analysis error: cannot change DocValues type from SORTED_NUMERIC to NUMERIC for field \"timestamp\"", "code":400}} in Drupal\search_api_solr\Plugin\search_api\backend\SearchApiSolrBackend->indexItems() (line 1001 of /docroot/modules/contrib/search_api_solr/src/Plugin/search_api/backend/SearchApiSolrBackend.php)

for the time being, I changed the timestamp definition in the schema.xml to be "docValues="false", then I was able to index my nodes

I'm not sure what the impact of that change on the search functionality

πŸ’¬ Support request
Status

Fixed

Version

4.1

Component

Solr Configuration Generator

Created by

πŸ‡ΊπŸ‡ΈUnited States sam2de

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024