Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

This simple option lets you choose the number of search fields that will appear in your search block. Each field may be able to search a number of categories (e.g. title, subject, etc.) so having more than one field allows the user to combine search terms easily.

5. Choose Search Terms in Advanced Search Block

Here you can choose the search terms that will appear in the drop-down menus on the advanced search block. Terms must be entered by their field names (in most cases this will be Dublin Core), though you can optionally specify a more human-readable label with the configure option.To determine the appropriate syntax for your search terms, simply edit the metadata on any object in your repository (for instructions, see How to Edit an Object’s Metadata in Chapter 3 - Getting Started with Islandora). Each field label will display the proper syntax for adding it to your Solr search configuration. A full list of the terms made available by the schema provided in the module package is provided in APPENDIX D - SOLR SCHEMA (SEARCH) Term Reference. Note that you will want to use fields that have been indexed as “text” here.

Code Block
dc.title ~ Title
dc.subject ~ Subject
PID ~ PID
type ~ Type

...

Image Added
You also have the option of setting permissions on a per-field basis, allowing only certain subsets of users access to search across different facets. These permissions, and the human-readable label for each Solr field, can be configured by clicking configure to open a new options window:

Image Added

Info

Solr field permissions are dependent on a role having Drupal permissions to search the Solr index. Roles without this permissions may appear in this list, but they will not be selectable.

6. Choose Facet Fields

Solr uses faceting to filter search results. Here, you can choose which fields you wish to allow faceting on. The format is the same as the search terms described above.

...