How do I avoid empty name fields appearing in search results?

The default Solr config uses the dc.contributor field in search results, to list all the names associated with an object. When a form saves an empty Name field with a roleTerm attached to it, these end up in the search results.

Example:

Agency costs of multiple directorships: Toronto Stock Exchange - 2007-2008

Contributors:

Johnson, John Nolan (author)
Donker, Han (Thesis advisor)
, (Thesis advisor)
University of Northern British Columbia (Degree granting institution)
, (Committee member) 

How do we avoid this?

Replace dc.contributor with our custom contributor field: bceln_namePart_roleTerm_merge_ms.

  1. Go to admin/islandora/search/islandora_solr/settings
  2. Under Display Fields, add bceln_namePart_roleTerm_merge_ms
  3. Save
  4. Configure the new field’s label to <none> or whatever label you prefer
  5. Remove dc.contributor
  6. Save again

Category: