setPercentileComputation method

AlgoliaQuery setPercentileComputation({
  1. bool enabled = false,
})

PercentileComputation

Whether to include or exclude a query from the processing-time percentile computation.

Usage notes:

  • When true, the API saves the processing time of the search query and includes it when computing the 90% and 99% percentiles, available in your Algolia dashboard.
  • When false, the search query is excluded from the percentile computation.

Source: Learn more

Implementation

AlgoliaQuery setPercentileComputation({bool enabled = false}) {
  assert(!_parameters.containsKey('percentileComputation'));
  return _copyWithParameters(
      <String, dynamic>{'percentileComputation': enabled});
}