API Reference / API Parameters / percentileComputation
Feb. 26, 2019

percentileComputation

Type: boolean
Engine default: true
Parameter syntax
'percentileComputation' => true|false

Can be used in these methods:

About this parameter

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.

Examples

Exclude the query from the percentile computation

1
2
3
$results = $index->search('query', [
  'percentileComputation' => false
]);

Did you find this page helpful?