Sorting Search Results by Relevance
From this block you can learn how to control the search results that the posts to be showed by relevance.
From this block you can learn how to control the search results, making sure that the posts are sorted according to the relevance.
You can manage the order of the search results and change the way they are showcased, which result should be the first, and which is to be the last one.
Each request will be handled depending on the location and frequency of mentioning the search words. This is how the position of the result is defined.
- The first search result should include the search words matching the request in the title, excerpt and content.
The second result should contain the matching search words in the content and excerpt.
The results with the lowest relevance should have the search keywords either in their title, or content, or excerpt.
Now adjust the needed settings in Ajax Search widget.
Open the page, where you want to add Ajax Search widget and click Edit with Elementor button.
Add the Ajax Search widget in the section.
In the Content > Search Settings tab select Relevance option from Sort Results by dropdown list.
Below, in the Filter Results set the descending or ascending order of the search results.
Click the Update button.