showDistinctSuggestions property

bool showDistinctSuggestions
final

To display one suggestion per document.

If set to false multiple suggestions may show up for the same document as the searched value might appear in multiple fields of the same document, this is true only if you have configured multiple fields in dataField prop. Defaults to true.

Example if you have showDistinctSuggestions is set to false and have the following configurations

// Your document:
{
	"name": "Warn",
	"address": "Washington"
}
// SearchWidgetConnector:
dataField: ['name', 'address']

// Search Query:
"wa"

Then there will be 2 suggestions from the same document as we have the search term present in both the fields specified in dataField.

Warn
Washington

Implementation

///  Then there will be 2 suggestions from the same document
///  as we have the search term present in both the fields
///  specified in `dataField`.
///
///  ```
///  Warn
///  Washington
///  ```
final bool showDistinctSuggestions;