Set Results to Display Exact Matches From Start of Page Titles First?
-
Greetings,
We’re trying to get Relevanssi to put result priority on pages with titles that contain the search term in the very start of the title.
For example, if “Dark Souls” is searched (without the “”), it produces the results: 1) Dark Souls II: Scholar of the First Sin, 2) Bleach: Dark Souls, 3) Dark Souls III, 4) Dark Fall: Lost Souls, 5) Dark Souls II.
Since #2 “Bleach: Dark Souls” and #4 “Dark Fall: Lost Souls” don’t contain “Dark Souls” at the start of the page title, we would like these two pages to have a lower priority and titles that start with “Dark Souls” such as #3 and #5 to be displayed before these two results.
Searching “Dark Souls” with the “” changes the order slightly, but still doesn’t solve this problem and still puts “Dark Fall: Lost Souls” as result #3 before “Dark Souls II” and other titles that begin with the “Dark Souls” search term.
I have “AND – require all terms” set with Disable OR fallback. Relevance as the Default order, and 100 weight put on Post titles with 0 weight applied to Comment, Tag, and Category.
I also tried using the Boost Exact Title Matches functions.php code provided by https://www.relevanssi.com/knowledge-base/adding-extra-boost-exact-title-matches/ but that also doesn’t seem to correct this problem.
How can we make sure that every page title that starts with “Dark Souls” is put first in our results? Also, is it possible to take this a step further where it better organizes how the I, II, III or 1, 2, 3 at the end of the titles are also ordered numerically?
- The topic ‘Set Results to Display Exact Matches From Start of Page Titles First?’ is closed to new replies.