Enhanced Search returning media instead of threads first


Active member
For a lot of search queries on my forum, elastic search is returning mostly media instead of threads. I would prefer it to list the threads first, or give them some kind of boost. This is verging on being non-functional because we have over 250,000 media and the results are not pretty for a default search of only 1 word. Is there anything or any setting that can change this behavior?

For example, if I search for "christmas", the entire first page of results are pictures that are titled "christmas." None of the threads titled christmas show up on the first page (and there are hundreds).


XenForo developer
Staff member
What sort of ordering are you using? Just pure relevance, or date weighted relevance? There isn't really a built-in way to do content-type based boosting. You may want to look into enabling date-weighted relevance (which likely requires a script to be copied into your ES directory).

But if that doesn't help it, there isn't really any further control unfortunately.