How does Solr rate search results?
Now that we’ve reviewed the search experience and how to improve it, we can look at how search criteria and ratings affect which search results.
Google continuously adjusts their ranking of what signals improve or harm search engine ranking. For example, their search results favour sites with SSL certificates, because they want to promote secure sites and sites with better mobile-first experience rank higher because they offer a better user experience.
You can apply these same concepts to your Solr on-site search.
In the case of Solr, the default rating algorithm looks like this:
queryFields = content^40.0, title^5.0, keywords^2.0, tagsH1^5.0, tagsH2H3^3.0, tagsH4H5H6^2.0, tagsInline^1.0, description^4.0, abstract^1.0, subtitle^1.0, navtitle^1.0, author^1.0
This tells your index how important a keyword is depending on where it appears. Compare how the “content” of the page is rated with 40 points and the H1 page title rated at 5 points.
This means keywords appearing in the content of a page are always rated higher than the actual H1 page title. But will that make sense for product pages?
By adjusting the points you can upgrade or downgrade corresponding content, and this can be different for individual page types. Other meta-information such as “publication date” or custom fields like “revenue figures” could be included in these adjustments.