Incorrect search results issue - how do I troubleshoot?
I've inherited a EE site using low search for the various search functions, and I'm trying to troubleshoot what seems to be an incorrect search results issue.
Current setup is that various posts on the site have various staff members attached (via a relationship channel field). When searching a certain staff members name, I'd want every post with them attached to be displayed, but there only seems to be part of the results being displayed (some posts I know are tagged with the test person aren't being displayed).
There isn't a limit on the search results being set.
In the Low Search settings for that collection (publications) the various fields (related people & key person) are set to searchable and have a score of 5.
Is there anyway I can troubleshoot this further?
Replies
Low 11 Nov 2014 12:58
What are the EE, LS and PHP versions? Also, what's the search form and results template tags? You can use http://pastie.org/ or http://pastebin.com/ for large chunks of code.
Bearpig 11 Nov 2014 13:21
Thanks for the quick reply - should've included versions.
EE - 2.9.0
LS - 3.1.7
PHP - 5.3.3
Form and Results current page - http://pastie.org/9711646
There are several different results' pages that we're using for filtering in a more static way.
Low 11 Nov 2014 13:36
The Keywords filter uses Collections to determine a match. The index that the Collection creates consists of data gathered from the weighted fields. That's the data stored in the exp_channel_data table. Some types don't store anything in there, basically making that field unsearchable by keywords. The native Relationships field is one of those types.
So, you could add weight to a Relationships field, but since it doesn't store any searchable data in the exp_channel_data table, it's not searchable by keywords. If you're using Playa, then it does store data in that table (ID, url_title and title), which does make the field searchable by keywords.
If you want to search relationships by keywords, you'll need something like http://devot-ee.com/add-ons/low-search-relationships
Otherwise, you'll need the Relationships filter, which works similarly to categories.
Low 11 Nov 2014 13:50
Also, you can remove the collection="" parameter from the Form tag. That does nothing in LS3+.
Curious, are you sure the weight goes up to 5? Out of the box, 3 is the max. And I don't recommend changing the core to allow for a higher weight.
Bearpig 11 Nov 2014 13:53
Ah thanks for that - will have a read up on those.
yup 5 was a typo, 3 is the max.