diff options
| author | Yuriy Andamasov <yuriy@andamasov.com> | 2026-05-23 14:22:49 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-05-23 14:22:49 +0300 |
| commit | 556b5a5faa958adb9956750a8b88c74c43db6fe5 (patch) | |
| tree | 750dbd2010e0cf90cea60b1c0687ce44492f97d5 /src/engine/VyOSElasticModernFulltextStorageEngine.php | |
| parent | c75bb17724896fb0eff97fcefce01c3a2ce9d049 (diff) | |
| parent | daa340590037e7a3d87f123078cc450dcbcfbca9 (diff) | |
| download | phorge-elasticsearch-modern-556b5a5faa958adb9956750a8b88c74c43db6fe5.tar.gz phorge-elasticsearch-modern-556b5a5faa958adb9956750a8b88c74c43db6fe5.zip | |
Merge pull request #5 from vyos/task/e2-getdocumenturi
E2: Add getDocumentUri() helper
Diffstat (limited to 'src/engine/VyOSElasticModernFulltextStorageEngine.php')
| -rw-r--r-- | src/engine/VyOSElasticModernFulltextStorageEngine.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/engine/VyOSElasticModernFulltextStorageEngine.php b/src/engine/VyOSElasticModernFulltextStorageEngine.php index 2570311..cf9278b 100644 --- a/src/engine/VyOSElasticModernFulltextStorageEngine.php +++ b/src/engine/VyOSElasticModernFulltextStorageEngine.php @@ -32,6 +32,10 @@ abstract class VyOSElasticModernFulltextStorageEngine return $this->version; } + public function getDocumentUri($type, $phid) { + return '/_doc/'.$phid; + } + public function getEngineIdentifier() { return 'elasticsearch-modern'; } |
