Skip to content

Commit

Permalink
Facet name as recorded if no qualifiers are present
Browse files Browse the repository at this point in the history
  • Loading branch information
mdholloway committed Jan 12, 2025
1 parent f414d8b commit 5871654
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def self.build_solr_props(prefix, recorded_value, original_script, linked_terms)
'linked_terms' => linked_terms.any? ? linked_terms : nil
}.compact.to_json],
"#{prefix}_search" => ([recorded_value, original_script].compact + linked_term_labels).uniq,
"#{prefix}_facet" => linked_term_labels.uniq
"#{prefix}_facet" => linked_term_labels.any? ? linked_term_labels.uniq : recorded_value
}
end

Expand Down

0 comments on commit 5871654

Please sign in to comment.