If you see field '<field_name>' was indexed without offsets, cannot highlight during a Drupal migration, Drupal and SearchStax Site Search are both trying to handle highlighting for the same search results.
To fix the issue, use only one highlighting method. Either let SearchStax Site Search handle highlighting, or keep highlighting in Drupal and turn off highlighting in SearchStax.
Choose Where to Manage Highlighting
Manage Highlighting in SearchStax Site Search
Use these steps when you want SearchStax Site Search to highlight keyword matches in the fields displayed for search results.
Route Drupal highlighting settings to Site Search
- In Drupal admin, go to Configuration > Search and metadata > SearchStax settings.
- Make sure Re-route searches via Site Search configurations is checked.
- Check Highlighting settings.
- Save the Drupal configuration.
Enable hit highlighting in Site Search
- In Site Search, open your Search App.
- Go to Configurations > Basic Configurations > Results Fields.
- Check Hit Highlighting.
- Publish your changes.
Turn off Drupal excerpt highlighting if needed
If you don't need Drupal search excerpts, turn off Drupal-side excerpt highlighting before you configure the SearchStax server to retrieve highlighted snippets.
- In Drupal admin, go to Configuration > Search and metadata > Search API.
- Open the Search API configuration where you manage the Highlight processor or search excerpts highlighting.
- Uncheck the Highlight processor and search excerpts highlighting if either setting was checked previously.
- Save your changes.
Note: Search excerpts aren't available after you uncheck the Highlight processor. Leave the processor checked if you include excerpts in your search results.
Retrieve highlighted snippets from SearchStax
- In Drupal admin, go to Configuration > Search and metadata > Search API.
- Find your SearchStax server and edit it.
- Under Advanced, check Retrieve highlighted snippets.
- Save the server settings.
Use highlighted data in Drupal Views
If you're using Drupal Views, update each field that should display highlighting.
- Go to Structure > Views and edit your search view.
- In the Fields section, edit each field you want to highlight.
- Check Use highlighted field data for each field you want to highlight.
- Apply the field changes, and then save the view.
Manage Highlighting in Drupal
Use these steps when you want Drupal's highlighting configuration to stay in place.
Keep highlighting settings in Drupal
- In Drupal admin, go to Configuration > Search and metadata > SearchStax settings.
- Make sure Re-route searches via Site Search configurations is checked.
- Uncheck Highlighting settings.
- Save the Drupal configuration.
Turn off hit highlighting in Site Search
- In Site Search, open your Search App.
- Go to Configurations > Basic Configurations > Results Fields.
- Make sure Hit Highlighting is unchecked.
- Publish your changes.
Next Steps
- See Drupal Module for broader module setup and behavior.