Skip to content

Commit b10330e

Browse files
algolia-botdamcou
andcommitted
chore: generated code for commit 1a24f33. [skip ci]
Co-authored-by: Damien Couchez <[email protected]>
1 parent 1a24f33 commit b10330e

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed

clients/algoliasearch-client-php/lib/Api/SearchClient.php

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77
use Algolia\AlgoliaSearch\Algolia;
88
use Algolia\AlgoliaSearch\Configuration\SearchConfig;
99
use Algolia\AlgoliaSearch\Exceptions\ExceededRetriesException;
10+
use Algolia\AlgoliaSearch\Iterators\ObjectIterator;
11+
use Algolia\AlgoliaSearch\Iterators\RuleIterator;
12+
use Algolia\AlgoliaSearch\Iterators\SynonymIterator;
1013
use Algolia\AlgoliaSearch\ObjectSerializer;
1114
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapper;
1215
use Algolia\AlgoliaSearch\RetryStrategy\ApiWrapperInterface;
@@ -3151,6 +3154,45 @@ public function waitForApiKey(
31513154
);
31523155
}
31533156

3157+
/**
3158+
* Helper: Iterate on the `browse` method of the client to allow aggregating objects of an index.
3159+
*
3160+
* @param string $indexName Index name
3161+
* @param array $requestOptions Request options
3162+
*
3163+
* @return ObjectIterator
3164+
*/
3165+
public function browseObjects($indexName, $requestOptions = [])
3166+
{
3167+
return new ObjectIterator($indexName, $this, $requestOptions);
3168+
}
3169+
3170+
/**
3171+
* Helper: Iterate on the `searchRules` method of the client to allow aggregating rules of an index.
3172+
*
3173+
* @param string $indexName Index name
3174+
* @param array $requestOptions Request options
3175+
*
3176+
* @return RuleIterator
3177+
*/
3178+
public function browseRules($indexName, $requestOptions = [])
3179+
{
3180+
return new RuleIterator($indexName, $this, $requestOptions);
3181+
}
3182+
3183+
/**
3184+
* Helper: Iterate on the `searchSynonyms` method of the client to allow aggregating synonyms of an index.
3185+
*
3186+
* @param string $indexName Index name
3187+
* @param array $requestOptions Request options
3188+
*
3189+
* @return SynonymIterator
3190+
*/
3191+
public function browseSynonyms($indexName, $requestOptions = [])
3192+
{
3193+
return new SynonymIterator($indexName, $this, $requestOptions);
3194+
}
3195+
31543196
private function sendRequest(
31553197
$method,
31563198
$resourcePath,

0 commit comments

Comments
 (0)