Versions Compared

Key

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

...

config.add_index_field

tells BlackLight to add this to the search results.

solr_name("contact_email", :stored_searchable)

tells BlackLight the name of the field in Solr. The solr_name method generates the solr field name according to the indexing set in the property definition in the model. The second parameter should match the indexing specified in the model for the property.

label

tells BlackLight the label to display before the value of the metadata field in search results. By default, the label is the property name (e.g. Contact_email).

Configure Blacklight to show the property in search results

Optionally, you can configure a property to be shown in the search results for a work.

...