From 4a2e5781883f8963c36ee129cf76c43e887ac4dc Mon Sep 17 00:00:00 2001 From: Yuriy Andamasov Date: Fri, 22 May 2026 11:00:04 +0300 Subject: Engine: Add getSearchUri() helper (typeless search endpoint) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 🤖 Generated by [robots](https://vyos.io) --- .../VyOSElasticModernFulltextStorageEngineTestCase.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/__tests__/VyOSElasticModernFulltextStorageEngineTestCase.php') 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())); + } + } -- cgit v1.2.3