Page score
Technical details about Page Score calculations
Understand how HyperFluxCMS calculates the "score" of a page to determine the position in which it will appear in a listing.
When a visitor performs a search on the page, HyperFluxCMS uses a specific calculation to determine the page's score and relevance for the search.
The algorithm was created to make search results as good as possible so that the visitor can more easily find the information they are looking for.
The algorithm takes several factors into account: where the searched terms are found, post age, its importance, etc.
This page provides an overview of the algorithm so you can understand why the search returns results "this way and not that way".
The first thing to understand is that the search is based on indexing information that is generated when the page is sent to the server, along with the compiled HTML file.
This indexing information ignores case differences, removes special symbols, removes accents, line breaks, duplicate spaces, etc. Only unaccented letters, numbers, and a few symbols are kept.
When the visitor performs a search, HyperFluxCMS separates what are isolated words from what are expressions. Expressions are provided in quotes. Words are separated by spaces. Searches also ignore words with fewer than 4 letters, unless they are inside a quoted term.
For example, the search criteria how to search on "web site" generates 3 search terms: "how", "search", and "web site". The term "web site" is considered a single term because it was in quotes. The terms "on" and "to" are removed because they has fewer than 4 letters and were not part of a quoted term.
After creating the list of search terms, HyperFluxCMS starts looking for posts that MUST contain ALL terms. If a single one of them is not in the post, it is not listed.
Also not included in the list are posts marked as Not Indexed, Not Published, or as Deleted.
Then HyperFluxCMS calculates a value for each post, which depends on where and how each term appears.
In the end,...
We have a partial total. But now we consider the age of the page, so that more recently edited pages have some kind of preference over older ones.
After all, on a news site, for example, if someone searches for "elections", it makes much more sense that they are looking for information about the most recent elections than those from 10 years ago.
For age, we consider an average between the date the page was initially created and the last edit date.
Finally, add the value defined in the "Boost" option.
Normally, pages are displayed in descending order of score, that is, those with the highest score, which achieved greater accuracy in what was searched for, are displayed first.
Listing and calculating the Page Score is relatively costly in terms of required processing. Therefore, it is used only for searches.
In other situations, such as listing pages in a postlist, HyperFluxCMS uses a lighter and simplified algorithm.
This score is computed as follows:
For example, a page with id=81, marked as "Advertising Article" and "Featured", with Boost=1500, adds