- Issue created by @jonathan_hunt
- 🇩🇰Denmark ressa Copenhagen
I also got hit by this, and solved it, see 📌 Inconsistent index options = DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS error after upgrade Closed: works as designed . Perhaps you can try some of the steps, and check if one of them work for you as well?
- 🇩🇪Germany mkalkbrenner 🇩🇪
From the release notes:
In order to support advanced highlighting and other features, the Solr schema provided by Search API Solr 4.3 got some fundamental changes, for example the usage of
StandardTokenizer
andstoreOffsetsWithPositions
.
When you upgrade the module to 4.3.x from 4.2.x and earlier you still can read an existing Solr index and perform searches.
But if you write (index) data you'll run into errors likecannot change field "xyz" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS
.
There're different ways to deal with the required update. But all require Solr knowledge.
But the safest way is to delete the existing core (or collection in case of Solr Cloud) and to create a new core (or collection) using a new Solr config-set generated by Search API Solr 4.3.x and to re-index your data afterwards.
If you want to avoid downtime of your service, you can also create a new core (or collection), clone and adjust the Search API server and index configs and index all your data twice, while users can still search via the old core (or collection). Afterwards you can use Solr's rename or alias capabilities to switch both cores (or collections) and delete the cloned Search API server and index configs. - Status changed to Fixed
11 months ago 10:47am 6 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.