collectiveaccess / pawtucket2

Pawtucket Improved
GNU General Public License v3.0
82 stars 75 forks source link

Object_x_Object Search Results are Not Helpful #79

Closed miqrogroove closed 6 months ago

miqrogroove commented 1 year ago

When searching for a keyword in Pawtucket, the search results include objects that don't have that keyword anywhere, except that there is an object_x_object relationship to a different object that does have the keyword in its title. Both objects get displayed in the search results, even though one of them seems to be mostly irrelevant to the keyword.

https://github.com/collectiveaccess/pawtucket2/blob/85d8e7060215a3a77ed05340181d3ba762fc60e0/app/conf/search_indexing.conf#L202-L207

Where related objects are desired in search results, this should be limited to specific relationship_type values rather than assuming all related objects are needed.