Relevanssi custom post type weight missing

Forums › Forums › Search & Filter Pro › Relevanssi custom post type weight missing

Viewing 3 posts – 1 through 3 (of 3 total)
  • Anonymous
    #269046

    Hi,

    I am using your plugin together with the Relevanssi-plugin. Everything is working fine except that I can not get the relevanssi custom post type weights to be included in your query. I have used Query Monitor to have a look at the query (see below). If I change relevanssi.title weight in the Relevanssi admin this is affected in the query below. Everything also seems to work fine when executing a search using the WP admin (Dashboard->Search). Am I missing anything to make the query also include relevanssi post type weights when querying using Search & Filter Pro?

    Query dump from form using relevanssi_query_filter:
    string(948) “SELECT DISTINCT(relevanssi.doc), relevanssi.*, relevanssi.title * 9 + relevanssi.content * 1 + relevanssi.comment * 0.75 + relevanssi.tag * 1 + relevanssi.link * 0.75 + relevanssi.author + relevanssi.category * 1 + relevanssi.excerpt + relevanssi.taxonomy + relevanssi.customfield + relevanssi.mysqlcolumn AS tf FROM wp_relevanssi AS relevanssi INNER JOIN wp_postmeta ON ( relevanssi.doc = wp_postmeta.post_id ) WHERE (relevanssi.term LIKE ‘testterm%’ OR relevanssi.term_reverse LIKE CONCAT(REVERSE(‘testterm’), ‘%’)) AND ( wp_postmeta.meta_key = ‘_thumbnail_id’ ) AND ( relevanssi.doc IN ( SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_type IN (‘post’, ‘product’, ‘custom_post_type_1’, ‘custom_post_type_2’, ‘custom_post_type_3’, ‘custom_post_type_4’, ‘custom_post_type_5’, ‘custom_post_type_6’) ) ) AND ((relevanssi.doc IN (SELECT DISTINCT(posts.ID) FROM wp_posts AS posts WHERE posts.post_status IN (‘publish’))) OR (doc = -1))”

    Anonymous
    #269075
    This reply has been marked as private.
    Trevor
    #269089

    Many ‘Order’ type plugins use the WordPress pre_get_posts() function to override wp_query, and thus they conflict with our plugin. Thanks for letting me know that you have resolved this. I will close this thread for now.

Viewing 3 posts – 1 through 3 (of 3 total)

Search & Filter Support
Privacy Overview

This website uses cookies so that we can provide you with the best user experience possible. Cookie information is stored in your browser and performs functions such as recognising you when you return to our website and helping our team to understand which sections of the website you find most interesting and useful.

We also use cookies to store items in your cart as well as allowing your to login on the site.

You can adjust all of your cookie settings by navigating the tabs on the left hand side.

By continuing to use this site, you also agree to our Privacy Policy.