• eastriverdev

    (@eastriverdev)


    Hi,

    I have indexed post tags and product tags in relevanssi but when I enter product tag in search, it shows nothing.

    For example, I added a tag “elba” in a product but when I type “elba” in search, it doesn’t show that product in search results.

    The page I need help with: [log in to see the link]

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

    (@msaari)

    The live search doesn’t work, but the main search returns results. There should be an option “Theme Settings > Shop > Use Relevanssi for AJAX search” – is there and is it enabled?

    Thread Starter eastriverdev

    (@eastriverdev)

    I’m using woodmart theme and I don’t see any such option.

    Besides that, can you also tell me what’s the difference between live search and the main search that you’re talking about?

    Plugin Author Mikko Saari

    (@msaari)

    See the Woodmart support thread here. The option was mentioned there, but it also has other solutions.

    The live search is a Woodmart feature that is programmed in a way that excludes Relevanssi. Apparently, it can be modified to use Relevanssi. The main search is the default WP search, which Relevanssi can easily override.

    Thread Starter eastriverdev

    (@eastriverdev)

    The link you provided tells about this path “/wp-content/themes/woodmart/inc/classes/search.php” but there is no search.php file in this path.

    Can you please tell me if there is a possibility to switch between live search and main search?

    Thread Starter eastriverdev

    (@eastriverdev)

    Ok I got the file location and followed the steps provided in the link you provided. Its working now but I have a small question. After this line:

    “$results = new WP_Query(apply_filters(‘woodmart_ajax_search_args’, $query_args));”

    I have added this code:

    “relevanssi_do_query( $results );”

    The question is, will this completely override all the search results with the ones from relavanssi plugin?

    Plugin Author Mikko Saari

    (@msaari)

    It should fix the live search. That’s all I know. Further questions about it are best asked on the Woodmart support forums; there are people there who use Relevanssi and Woodmart, and know this stuff better than I do. I don’t have Woodmart.

    Thread Starter eastriverdev

    (@eastriverdev)

    Thanks alot for your help.

    Can you please tell me if it is possible to show categories in search results?

    Plugin Author Mikko Saari

    (@msaari)

    Relevanssi Premium can, in itself, but WooCommerce themes make it really hard, because WooCommerce themes usually only want to show products in the results. It may require extensive editing of the theme.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Search from product tags’ is closed to new replies.