First off I’m going to address the question ‘ How to Add Excerpts to the Solr Search API ‘ .
This is worthy of note as the obvious way is to do it through the Search API UI; when in fact this method needs to be disabled and instead edited on the Solr Server Settings ‘ Still within Search API setting ‘
Step-by-step guide
- Check the following is disabled.
> admin > configuration > filters > under ‘Processors
> check that ‘Highlighting’ is unticked
> SAVE SETTINGS
> admin > configuration > 'Your Server' > edit
2.
> under 'Advanced' > tick 'Return an excerpt for all results.'
> 'Save settings’
3. Then in your view for the search you have add ‘Search: Excerpt’ Field.
Adding an excerpt from an Attachment
There’s is a bug with Search API and Excerpts; currently there is a patch which isn’t on the development release. Go to this page to get this
No comments:
Post a Comment