• Resolved Mick

    (@haarbollen)


    Hi
    I tried searching for ‘relevance’ in forum but none of the results I found were relevant for me (no pun intended).
    I would like the title to be more relevant thans content – and tried to follow a link you provide in another thread (https://advanced-woo-search.com/guide/relevance-score/) – here it states, that title comes before content, it just doesn’t seem for work for me. Is there anything I can do?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ILLID

    (@mihail-barinov)

    Hi,

    Yes, title already has more relevance score than content. But, if needed, you can make it even higher.

    Please use following code snippet:

    add_filter( 'aws_relevance_scores', 'my_aws_relevance_scores' );
    function my_aws_relevance_scores( $relevance_array ) {
        $relevance_array['title'] = 500;
        return $relevance_array;
    }

    You need to add it somewhere outside the plugins folder. For example, inside functions.php file of your theme or use some plugin for adding code snippets.

    Also, after adding this code, you will need to go to the plugin settings page and click the ‘Clear cache’ button.

    Regards

    Thread Starter Mick

    (@haarbollen)

    Hi Mihail

    Thanks a lot, worked immediately after purching the cache and updating!

    Best regards, Mick

    Plugin Author ILLID

    (@mihail-barinov)

    Glad to help.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Titel before content’ is closed to new replies.