This module provides a Search adapter for Solr.
- PHP >= 8.0
- Omeka S >= 3.1.0
- Solr >= 5.1.0
- Search module version 0.16.0 or greater is recommended (but not strictly required)
- Install the Search module
- Install this module
- In the administration menu, click on "Solr"
- Edit the default node and set the URI of your Solr instance.
- Go to the mappings section of the default node (the icon next to the edit icon)
- Create an item mapping with
dcterms:title
as source anddcterms_title_txt
as Solr field - Edit the Solr node again and type
dcterms_title_txt
in "Query fields (qf)" - In Search admin pages:
- Add a new index using the Solr adapter
- Launch the indexation by clicking on the "reindex" button (two arrows forming a circle)
- Add a page using the created index
- In page configuration, you can enable/disable facet and sort fields (more fields can be created by going to the Solr admin page)
- In your site configuration, add a navigation link to the search page
- Go to your site, then click on the navigation link you just added.
- The search form should appear. Type some text then submit the form to display the results.
- Search among items and item sets
- Highlighting (show fragments of documents that match the user’s query)
- Customizable facets and sort options
- Customizable mappings
- Extensible by other modules:
- Custom transformations (modifications applied to a value before being added to a Solr document)
- Custom value extractors (make module-specific data related to resources available to the indexer)
- Solr documents can be altered right before being sent to Solr
- Solr query can be altered right before being sent to Solr
- Compatible with the module Group (can return private resources if they belong to user's groups)