Suggestions results sort

  • leomoon
    Participant
    # 1 month ago

    Eg. I have a product https://test.antikvarijatknjiga.hr/knjiga/una/

    Its post title is Una

    If I search for it (partial keywords are turned on), the suggestions I get contain keyword “Una”, but, the product that is actually is called Una does not show up as it is not prioritized in any way and ony 10 first results are displayed. Is there a way to prioritize those results that are exact match versus those that are partial match?

    wpsolr
    Keymaster
    # 1 month ago

    If you mean for keyword suggestions, I suspect not.

    But if you switch to content suggestions, it should be better. You can even then use screen 2.3 to boost titles over other fields.

    leomoon
    Participant
    # 1 month ago

    Not keyword suggestions. I display content.

    As you can see on https://test.antikvarijatknjiga.hr, I use separate columns to display taxonomy terms for each taxonomy. But even if I were to boost title, there are still more than 10 titles containing keyword “Una”, and therefore it would not show up as it seems that results are displayed as they come from Solr server which apparently does not prioritize “Una” over “Unaprijed” or “una lunga estate”.

    wpsolr
    Keymaster
    # 1 month ago

    I suspect the “partial keywords” to be the culprit.

    leomoon
    Participant
    # 1 month ago

    If I turn off partial keywords (now turned off on the test site), the number of results is naturally reduced so this title makes it into 10 top results, but, it nevertheless shows up at number 7. which is again not taking into a consideration the fact that this is the exact match. I thought that the SOLR server itself would have some kind of logic that would calculate relevance better… or not?

    wpsolr
    Keymaster
    # 1 month ago

    And if you increase the boost for title? (much more)

    wpsolr
    Keymaster
    # 1 month ago

    What you want is boosting exact matchings, while retrieving also partial matchings.

    Something like: https://stackoverflow.com/questions/13876073/while-searching-with-sunspot-rails-on-solr-how-can-i-boost-whole-word-matching?rq=1

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.