The Query Fields query pipeline stage defines common Solr query parameters for the edismax query parser. If using a less-than sign (<) with DisMax, it must be escaped using a backslash. An alternative to this stage is the Additional Query Parameters stage.Documentation Index
Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
Use this file to discover all available pages before exploring further.
Collapsing results
In Fusion 5.9.13 and up, you can configure this stage to collapse search results based on a field, such asproduct_id, to group all variations of each item into a single search result.
This is useful for ecommerce sites where you want to show a single product with multiple SKUs or variations.
Fields used for grouping must be of type string, int, or float.
- Open your query pipeline.
- In the Query Fields stage, select the checkbox under Collapse and Expand Results.
- Under Grouping Field, enter the field name to group by, such as the product ID field.
- Save the query pipeline.
_score, but you can change this to any field in the index using the options under Group Sort.
For additional collapse options, see the configuration reference below.