Skip to content

Conversation

@marji
Copy link

@marji marji commented Sep 10, 2024

Update the solr configuration based on the search_api_solr 4.3.5 drupal module.

This change updates .docker/config/solr/ with search_api_solr/jump-start/solr8/config-set/.

(synced from search_api_solr/jump-start/solr8/config-set/).
@marji
Copy link
Author

marji commented Sep 10, 2024

This addresses issue #106

@marji
Copy link
Author

marji commented Sep 10, 2024

To verify the config-set provided in this PR:

Check out the search_api_solr v4.3.5:
$ git clone --branch '4.3.5' https://git.drupalcode.org/project/search_api_solr.git

Now you can compare the search_api_solr/jump-start/solr8/config-set directory with the the updated scaffold .docker/config/solr/ directory.

@steveworley
Copy link
Contributor

Thanks @marji — we will look at getting this tested and will then take this through the internal review process to get this released.

@@ -419,10 +430,10 @@
English Text Field
7.0.0
-->
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100">
<fieldType name="text_en" class="solr.TextField" positionIncrementGap="100" storeOffsetsWithPositions="true">
Copy link
Contributor

@sonnykt sonnykt Sep 11, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@steveworley this change will disrupt all PaaS sites when they write into the existing index unless the deployment recreates the Solr core and reindexes the content. We will need to find a solution for sites with a high content volume.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Solr error:

Caused by: java.lang.IllegalArgumentException: cannot change field "tm_X3b_en_body" from index options=DOCS_AND_FREQS_AND_POSITIONS to inconsistent index options=DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS

Clearing indexed data from Search API won't fix the error. The error can only be fixed for existing index by removing the directory /var/solr/drupal directory from the Solr container and restart the service so that Solr creates a new index.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants