diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-22 11:00:04 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:20:35 +0300 |
| commit | 4a2e5781883f8963c36ee129cf76c43e887ac4dc (patch) | |
| tree | f4aedbe3ad6f9ade37861def61decb9ebd093337 /src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | |
| parent | daa340590037e7a3d87f123078cc450dcbcfbca9 (diff) | |
| download | phorge-elasticsearch-modern-4a2e5781883f8963c36ee129cf76c43e887ac4dc.tar.gz phorge-elasticsearch-modern-4a2e5781883f8963c36ee129cf76c43e887ac4dc.zip | |
Engine: Add getSearchUri() helper (typeless search endpoint)
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php')
| -rw-r--r-- | src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php index 3a96bac..e3cbef5 100644 --- a/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php +++ b/src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php @@ -80,4 +80,14 @@ final class VyOSElasticModernFulltextStorageEngineTestCase $this->assertEqual($uri_a, $uri_b); } + public function testGetSearchUri() { + $engine = id(new VyOSElasticModernFulltextStorageEngine()) + ->setVersion(7); + $this->assertEqual( + '/_search', + $engine->getSearchUri(array('TASK', 'DREV'))); + $this->assertEqual('/_search', $engine->getSearchUri(array('USER'))); + $this->assertEqual('/_search', $engine->getSearchUri(array())); + } + } |
