Unexpected search results
-
Hi, I am trying to understand how the search results are (not) working. To explain, I have my (custom) posts set up with categories and tags. When I am on the category “Shade Accessories” and search for the term “485,” I would expect that the posts first listed in the results would be ones that include the term “485”. I have the following settings for Weights:
Titles: 5, Tag weight: 4, Category weight: 3, Content: 2, Comment text: 1.There are 2 posts with “485” in the title, and 15 with the tag “485” but only 3 results come up. I also have some posts tagged with “485,” such as one called “Janus” that are not showing up.
The same results are presented in the Admin search. I attempted to use Query Monitor (following your instructions) but A) I do not see anything in the Queries part, under “Caller” as relevanssi_search() [or anything specifically related to Relevanssi that I can tell] and B) I’m also getting this error message w/ Query Monitor despite manually creating the symlink via WP-CLI and allowing all permissions to the directory/files: “Extended query information such as the component and affected rows is not available. Query Monitor was unable to symlink its db.php file into place.”… and finally when implementing the php filters (described here: https://www.relevanssi.com/knowledge-base/debugging-relevanssi-searching-issues/), these are my results:
string(797) "SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 5 + relevanssi.content * 2 + relevanssi.comment * 1 + relevanssi.tag * 0.75 + relevanssi.link * 0 + relevanssi.author + relevanssi.category * 0.75 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM siwpmulti_4_relevanssi AS relevanssi WHERE (relevanssi.term LIKE '485%' OR relevanssi.term_reverse LIKE CONCAT(REVERSE('485'), '%')) AND ( relevanssi.doc IN ( SELECT DISTINCT(posts.ID) FROM siwpmulti_4_posts AS posts WHERE posts.post_type IN ('screen', 'shade', 'accessories') ) ) AND ((relevanssi.doc IN (SELECT DISTINCT(posts.ID) FROM siwpmulti_4_posts AS posts WHERE posts.post_status IN ('publish'))) OR (doc = -1)) ORDER BY tf DESC LIMIT 500"
…so doesn’t seem to be matching the weight params that I entered, if I’m understanding this correctly?
Note that I am also using the “Search & Filter” plugin and this is a multisite.
Please let me know if you have any ideas about what I am missing or could be going on here.
Thank you!
The page I need help with: [log in to see the link]
- The topic ‘Unexpected search results’ is closed to new replies.