• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

XF 1.5 When searching, what is the default sort order of results?

Kevin

Well-known member
#1
When doing a search, what is the default sort order of the results?

Example: https://aliensoup.com/search/1/?q=frankenstein&o=relevance

When doing that search for "Frankenstein" I would expect that the thread created today with the word "frankenstein" in the thread title would appear first but instead I get older XF Gallery results first.

Is there an option to change the search results order?

Environment: XF 1.5.2 with ES 1.1.2
 

Chris D

XenForo developer
Staff member
#2
The default order is "relevance", if Enhanced Search is installed.

So it should be returning results which ES believe are the most relevant to your search. Otherwise the default order would be "most recent".
 

Mike

XenForo developer
Staff member
#3
I would note that you can enable date-weighted relevance as an option for Enhanced Search. You'll need to setup a script in Elasticsearch (or enable dynamic scripting). That may give you better results.