Advertising sustains the DA. Ads are hidden for members. Join today

Search API Solr HowTos

Various descriptions how to achieve a particular feature. 

Add a new server

Add and configure a new server in order to index and query content on your site

Boosting by date

Boosting the most recent articles in Search API SOLR results listings

Boosting results

Give higher relevance to a set of documents over the other results.

Compound words

If a search keyword is contained within a word in a document in the index, the search engine considers the document a match.

Create a search view that doesn’t load entities from the database

How to create a search page with Views that only displays Solr field data, without touching the database

Define a new "content domain"

Create and customize content domains according to your use cases

Filter similar results with MoreLikeThis

Create a MoreLikeThis block to show similar content on your site

How to delete Solr Core and Collection, or all documents

Shows how to delete a Solr core and collection, or all documents in Solr.

Migrate from 8.x-1.x to 4.x

Upgrading the module from 8.x-1.x to 4.x requires some additional steps decribed here

Nested Documents

How to levarage Solr's nested documents feature

Simple Geolocation based View using search-api-location

Perform location based searching.

How to replace the deprecated hook hook_search_api_solr_query_alter with PreQueryEvent

Step-by-step instructions on replacing the deprecated hook with an event. The same principle can be used for other hooks and events too.

Retrieve field values from Solr, avoid entity loading

Avoid database queries to render the search result.

SOLR Configuration for multisites with one core index

A step-by-step procedure to configure Solr Search with one core search index for multiple sites.

Set up and configure a Multisite search

This feature allows you to search and retrieve content from multiple sites.

Spellcheck

With this feature errors in user queries can be corrected

Stemming

Reducing words to their word stem, base or root form.

Storing and displaying rendered HTML

Store, retrieve and display rendered HTML fields from Solr avoiding entity load/render to improve performance

Use Solr Terms for autocompletion

Provide your users with automatic suggestions for query terms using Solr's Terms Component

Tags

Guide maintainers

mkalkbrenner's picture
OanaIlea's picture