1. 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?

Discussion in 'XenForo Questions and Support' started by Kevin, Oct 23, 2015.

  1. Kevin

    Kevin Well-Known Member

    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
  2. Chris D

    Chris D XenForo Developer Staff Member

    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".
  3. Mike

    Mike XenForo Developer Staff Member

    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.
  4. Kevin

    Kevin Well-Known Member

    Thanks for the info, guys. :) I know now what my weekend reading material and/or experiments will be.
  5. Joe Link

    Joe Link Well-Known Member

    @Kevin which results gave you the best results?
  6. AndyB

    AndyB Well-Known Member

    I prefer Most Recent.

    Admin CP -> Options -> Search Options -> Enhanced Search Default Search Order -> Most Recent
    Joe Link likes this.
  7. viper357

    viper357 Active Member

    Is there a way to set "most recent" in the standard xenforo search? Or do we have to buy Enhanced Search for that?
  8. AndyB

    AndyB Well-Known Member

    The standard search does this by default.
  9. viper357

    viper357 Active Member

    Last edited: May 1, 2016

Share This Page