Suggestions results sort
-
leomoonParticipant3 years, 11 months ago #14695
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?
leomoonParticipant3 years, 11 months ago #14701Not 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”.
leomoonParticipant3 years, 11 months ago #14707If 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?
wpsolrKeymaster3 years, 11 months ago #14709What 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
You must be logged in to reply to this topic.