Hey there,
Sorry for the late response. Since I am making a news website, I would like to make sure that the search results show the most relevant posts. I have the following example:
1. If I search for a name lets say “John Doe” the search searches for topics that have “John” and “Doe” as words. An article may popup which contains two people named “John Travolta” and “Kate Doe”. I want to make sure that if I search for two or more words the posts that have them next to each other would appear first.
2. Also, I notice that the search orders the posts in a descending by date format and sometimes the searches are not as relevant as I want them to be. Lets say we search for “John Doe” and we have 10 posts that have John Doe in the topic but all these posts are from 2 months ago and we have 1 post from this month that contains “John Doe” in the post (without having the name in the topic at all). On some searches I notice that the newer one (that doesn’t have John Doe in the topic) would appear first. I want to give extra weight to occurrences of the searched text in the topic of the post because that would make the results more relevant to the type of posts we have.
I hope that I was clear enough, if needed ask me for more info.
Hi petar777,
1. Unfortunately this can be done only with some custom code, there is currently no option for this in our theme.
2. If you are referring to the live search results, then there is no option to filter/sort the results in the live search results (only the layout can be edited). Also if that article appears in results it should contain the name “John Doe” in article title, or article content.
Thank you!
Hello,
This modification needs to be done custom by a developer. Unfortunately, these changes are beyond our knowledge. If you wish, you can contact our custom work team https://tagdiv.com/submit-a-request/
Thank you!