Support » Plugin: Relevanssi - A Better Search » [Plugin: Relevanssi – A Better Search] [Plugin: Relevanssi] exclude specific custom taxonomy

  • Resolved mikeaag

    (@mikeaag)


    Hi there,

    Im using Relevanssi along with wp e-commerce to provide a decent search function for the products on my site.

    The issue im having is that relevanssi is indexing product variations, but the url for my product variations does not link to the product.

    I know this is an issue with my site/wp e-commerce, but i basically need to sort this through relevanssi.

    What im looking for is a way to exclude the custom taxonomy “wpsc-variation” from being indexed.

    I would be grateful for any help.

    Many Thanks,

    Mike

    WordPress Version – 3.3.1

    My Plugins

    Breadcrumb NavXT – 4.0.2
    BWP Google XML Sitemaps – 1.2.0
    Comment Link Manager – 1.1
    FancyBox for WordPress -3.0.1
    Fast Secure Contact Form – 3.1.4.1
    Newsletter – 2.5.2.6
    Relevanssi – 2.9.14
    Storefront Insights – 1.1
    W3 Total Cache – 0.9.2.4
    WP-PageNavi – 2.82
    WP e-Commerce – 3.8.7.6.2
    WP E-Commerce Weight & Destination Shipping Modules – 4.4

    http://wordpress.org/extend/plugins/relevanssi/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Mikko Saari

    (@msaari)

    Relevanssi should only index the custom taxonomies listed in the “Custom taxonomies to index” option. Remove the custom taxonomy from there, and Relevanssi won’t index it.

    Hi msaari,

    Thanks for getting back to me.

    I dont know how i overlooked that option 🙁

    However, it still seems to be picking up products that are variations.

    It would seem that the variations of a product are stored as separate posts in wp_posts with the post_type of wpsc-product.

    This seems to be what is causing the issue here.

    What i have noticed is that all the variations have the parent_post set to the main product.

    Is it possible to either – prevent a post with post_type ‘wpsc-product’ with a parent post from being indexed, or let it be indexed, but set the url to the parent url?

    Thanks in advance

    Mike

    Plugin Author Mikko Saari

    (@msaari)

    What is the post_status of the variations? ‘publish’?

    Relevanssi Premium has this handy filter that would help a lot here, but unfortunately it’s not available in the free version. At least you can do a relevanssi_hits_filter filter that lets you weed out the variations from the results.

    Hi Msarri,

    Thanks for getting back to me.

    I managed to get a working solution yesterday which was quite simple.

    $permalink = get_permalink($post->post_parent);

    I then do a check to see if $permalink = 0, if it does i use the_permalink(), otherwise i output $permalink.

    I dont know if this is something that you can easily add to the plugin as a built in option, but for my projects it would definitely be helpful.

    I appreciate your help, and plan to upgrade soon to help support this awesome plugin (although i am having an issue currently which i still need to figure out if its being caused by Relevanssi)

    Thanks again for the help

    Mike

    Sorry, Double post 🙁

    Plugin Author Mikko Saari

    (@msaari)

    That’s a bit rare condition to handle in Relevanssi, it’s more of a something you can do on the search results template – which falls outside Relevanssi’s scope. But glad to hear you got it working, with such a simple fix as well.

    hi mike,

    where did you put the
    $permalink = get_permalink($post->post_parent);

    i have the same problem with my variations in wp e-commerce using revalanssi.

    thanks for answer

    lopina

    i have been trying all the search plugins and so far the one that works best is relevanassi but i need to know how to implement the product variations exclusion rule.

    someone please help or clarify.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘[Plugin: Relevanssi – A Better Search] [Plugin: Relevanssi] exclude specific custom taxonomy’ is closed to new replies.