API Reference / API Parameters / enableABTest
Type: boolean
Engine default: true
Parameter syntax
'enableABTest' => true|false

Can be used in these methods:

About this parameter

Whether this search should participate in running AB tests.

Usage notes

By default, a search participates in currently active AB tests. You can prevent this by setting the enableABTest parameter to false. You may want to do this for searches performed in closed environments (like administration panels), or for searches that must target specific index variants during testing or development.

Examples

Disable AB tests

1
2
3
$results = $index->search('query', [
  'enableABTest' => false
]);
Did you find this page helpful?