- Composer is installed on your operating system.
- Solr Server with a WissKI core is up and running.
- A view with a fulltext search.
Open a Terminal at your root-dir and type
composer require 'drupal/facets:1.x-dev@dev'
Go to Manage Extend and check Facets and click Install.
Add fields for facet to index
Visit Manage Configuration Search API (Search and Metadata section). In the row of your solr-index , unfold the Operations menu by clicking on the caret and select Fields. Click + Add fields and on the Add fields to index pop up, Add one or more filter-fields . Save changes, go the View tab and click Index now.
Navigate to Manage Configuration Facets (Search and Metadata section) and click + Add facet. Select the view-for-fulltext-search as the Facet source and one of your filter-fields as Field. You may want to change the facet-name , then Save. On the Edit page for the facet, the default state of the settings is fine, click Save.
Now go to Manage Structure Block layout. Click on Place block next to a Sidebar region. Search for your facet-name and click Place block again. You may want to restrict the pages, where the block is visible to the view-for-fulltext-search . Save block.
Visit your view-for-fulltext-search by navigating to Manage Structure Views and click at the page route in the Displays column. You should see the facet block on the sidebar, and if you click on a criteria, the result set should change.