...
| tells BlackLight to add this to the search results. |
| 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. |
| 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). |
See Customizing Blacklight - Metadata Fields for a tutorial on using the add_index_field
method. NOTE: This page of the tutorial also discusses the add_show_field
method which is not used in Hyrax show pages. The helper_method
which is described in the context of the add_show_field
method can also be used with the add_index_field
method.
...