Apply Relevance Criteria To Display the Lowest Priced Product, Or Availability, Within A Product Group In Your Layer
This is a sensitive setting. In this sensitive context, Relevance Criteria directly impacts the display order of results. If you're experiencing unexpected outcomes and have been adjusting Relevance Criteria, consider resetting this parameter.
Case 1
This function helps the user ensure that Doofinder displays the product with the lowest price from a group of products, instead of the parent product, regardless of the "group_leader" field: ''true'' (whether it's indexed or not). We only need each group of products to be grouped with the same "group_id".

By default, Doofinder will always display the “group_leader” to “true” for a set of grouped products, so it's a viable way to show the product with the lowest price.
There are other cases where the "sale_price" is not indexed in parent products, in which case this change helps save time and prevents the customer from having to update the product database. We can use "best_price" or "sale_price" in Relevance Criteria as the second field (following score) in descending order (Highest to Lowest).
To configure this, go to Search > Advanced Preferences > Relevance Criteria.
This is how the panel looks like:

Case 2
Another example: In this other scenario, Relevance Criteria has been set to “availability ascending” (Z to A), prioritizing "on stock" products at the forefront of the search results, followed by "out of stock" products.

- Porduct order before the Relevance Criteria configuration:

- Product order after the Relevance Criteria configuration:
