Skip to content

Update 02-solr-drupal.md #9499

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions source/content/guides/solr-drupal/02-solr-drupal.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,3 +258,19 @@ This occurs because both repositories contain a package called `drupal/search_ap
### Fatal error: Cannot redeclare config_get_config_directory()

This error occurs after installing `search_api_pantheon` for Drupal using Composer. If you receive this error, you should switch to the [Drupal Composer-managed Upstream](https://github.com/pantheon-upstreams/drupal-composer-managed). See [Switch Your Custom Upstream](/guides/custom-upstream/switch-custom-upstream) for instructions on how to do this.

### Solr Indexing error

If you are experiencing an error while indexing ie.

```
SearchApiSolrException while indexing item some:entity:node/1234 Solr endpoint https://search-gateway.pantheon.io bad request (code: 400, body: Expected: OBJECT_START but got ARRAY_END)
```

This usually means that there's a possible non-UTF8 character that solr can't process impeding the indexing process. To fix the issue, you can check the content's title, body, or other fields that may contain the non-UTF8 character.

### Working with multiword synonyms

If you do have an issue having multiword Synonyms get to work, make sure you disable any parsing Drupal would be processing before it get passed down to the Solr server. A good example of this is the Parse mode field on your search filter view:

![Configure Solr Settings](../../../images/guides/solr-drupal/solr_view_filter_parse_mode.png)
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.