componentQuery property
to get the raw query based on the current state
Implementation
Map get componentQuery {
Map query = {
'id': id,
'type': type.value,
'dataField': getNormalizedField(dataField),
'react': react,
'highlight': highlight,
'highlightField': getNormalizedField(highlightField),
'fuzziness': fuzziness,
'searchOperators': searchOperators,
'includeFields': includeFields,
'excludeFields': excludeFields,
'size': size,
'from': from,
'queryFormat': queryFormat,
'sortBy': sortBy.value,
'fieldWeights': getNormalizedWeights(this.dataField),
'includeNullValues': includeNullValues,
'aggregationField': aggregationField,
'categoryField': categoryField,
'missingLabel': missingLabel,
'showMissing': showMissing,
'nestedField': nestedField,
'interval': interval,
'customHighlight': customHighlight,
'customQuery': customQuery != null ? customQuery(this) : null,
'defaultQuery': defaultQuery != null ? defaultQuery(this) : null,
'value': value,
'categoryValue': categoryValue,
'after': after,
'aggregations': aggregations,
'enableSynonyms': enableSynonyms,
'selectAllLabel': selectAllLabel,
'pagination': pagination,
'queryString': queryString
};
query.removeWhere((key, value) => key == null || value == null);
return query;
}