Add a Group
- In the Administration Console, go to Search > Search Logics > Your search logic > Sort & Relevance.
- Under Group, click Enable.
-
Define your grouping and sorting criteria by clicking Edit.
For our example, specify:
-
Group by:
quantity > 50
. -
Sort hits in group by:
distance
.
When in the Expression builder, if you do not see the field that you want on the list of Index fields, it is because the field is not being stored in RAM. You need to enable that field's RAM-based option, apply your changes, then clear your build group & reindex.
-
Group by:
-
(Optional) Specify an additional clause to your Group by
expression by clicking Add clause.
For an example of how additional clauses impact your search results, see Multicriteria Grouping Example.
- Click Apply.