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

XF 1.4 Control search result priority?

Discussion in 'XenForo Questions and Support' started by owls8521, Dec 6, 2014.

  1. owls8521

    owls8521 Active Member

    I am wondering if it is possible to make resources show up higher in my search results and to make media show lower. Is there any way to control priority in general searches?
     
    Mouth likes this.
  2. Mike

    Mike XenForo Developer Staff Member

    In the standard search system, not at all as results are date ordered.

    With Enhanced Search, there is theoretically scope to do it as custom scoring is possible, but it's something that would require custom development.
     
  3. owls8521

    owls8521 Active Member

    I'm interested in purchasing Enhanced Search, but I find it more difficult to understand than Xenforo's other official add-ons. Is there a very clear list of benefits somewhere?
     
  4. Mike

    Mike XenForo Developer Staff Member

    It's mostly down to the search being backed by Elasticsearch (so you would need to be able to install that on your server: http://www.elasticsearch.org/). As such, it does things like:
    • No minimum word length/stopwords for searches
    • Ability to "stem" to improve results (searching for "jump" would match "jumped", "jumps", "jumping")
    • Ability to sort results based on relevance, including recency-weighted relevance (higher chance of more recent results appearing before older ones, but weighted by how relevant the document appears to be)
    • Overall better performance, especially with a lot of searchable content (important for larger boards)
     
    Amaury likes this.
  5. owls8521

    owls8521 Active Member

    The relevance weighting sounds like it would help. Do you think if a resource has the same title as a search query, it will show up at the top of the results?

    How much extra work is it to maintain Elasticsearch? I don't mind doing extra work upfront to install it initially, but I'm worried about additional work in the long run.

    Also, I have a suggestion. Xenforo should clarify the weaknesses of not having Enhanced Search. I didn't know that Xenforo only sorted search results by date, so that makes Enhanced Search sound a lot more appealing.
     
  6. Mike

    Mike XenForo Developer Staff Member

    Elasticsearch is really just a daemon like MySQL, so maintenance is roughly equivalent. I would say that it's mostly set it up and let it run.

    In terms of the search results, I'd have to recommend trying it out here to see if it returns things the way you're hoping. There isn't content weighting, though titles are considered more important than the body.
     

Share This Page