ucsdlib / damspas-rd

A Digital Collections application based on Hyrax
MIT License
3 stars 2 forks source link

R&D Suppress components from search results #124

Closed mcritchlow closed 7 years ago

mcritchlow commented 7 years ago

Descriptive summary

Please look into our options for suppressing components from search results. Using a custom SearchBuilder, or whatever makes most sense.

If a possible solution is found, please post screenshots and we can potentially move towards a PR in this ticket as well.

Rationale

While we don't yet know exactly what we want the user experience to be, as it relates to components, we do know that we want them suppressed from the search results interface.

Expected behavior

A user searches for "fish" and a component with that metadata will show in the search results. We only want the top-level object to be returned, not the component.

Actual behavior

All matching records, including components, are returned in the search results.

VivianChu commented 7 years ago

@mcritchlow - For a new component object , I made a simple change by making the default value "suppress_discovery" instead of "restricted". For other new object resource object, the default value is still "restricted". This will suppressed the components in the search results. Attached are the screen shot.
searchcomponent objectwithcomponent addnewcomponent