disp = search
This Disp is used to display the search form and search results.
In v6.6+, the search uses a ranking algorithm in order to present the most relevant results on top.
This, of course, only applies as long as the particular skin you are using doesn’t completely override the behavior of b2evolution’s default
_search.disp.php template calls
search_result_block() to perform the search and display the results.
The results are cached in order to increase speed in case of multipage search navigation.
There is a
flush() before starting the search in order to display the first part of the page before the search process, which can be pretty long.
The search algo first tries to find all the objects that match the keywords. It tries to search the following types of objects:
- Posts/Items Note: sidebar links are excluded –
- Comments –
- Categories –
- Tags –
Each matched object is scored with a relevance score.
Then the results are sorted by descending relevance score.
Finally, at display time, the results are displayed with a match-quality percentage.
Enable Debug Mode to see what the ranking algorithm does, especially how it computes scores.
Created by • Last edit by on Oct 31, 2018