summaryrefslogtreecommitdiff
path: root/src/engine/VyOSElasticModernFulltextStorageEngine.php
diff options
context:
space:
mode:
authorYuriy Andamasov <yuriy@andamasov.com>2026-05-23 14:22:26 +0300
committerGitHub <noreply@github.com>2026-05-23 14:22:26 +0300
commit830ea6cff237235f3b0f21c58d54f062656eee45 (patch)
tree06237e77226b6b94f31d3b19af142e848baf04cf /src/engine/VyOSElasticModernFulltextStorageEngine.php
parentdf25165ba9ae7fb89c999397d8e547127768bda4 (diff)
parent0b466b90271553d0c4f620e326305453a4b23dd7 (diff)
downloadphorge-elasticsearch-modern-830ea6cff237235f3b0f21c58d54f062656eee45.tar.gz
phorge-elasticsearch-modern-830ea6cff237235f3b0f21c58d54f062656eee45.zip
Merge pull request #3 from vyos/task/h1-host-class
H1: Add VyOSElasticModernHost + placeholder engine
Diffstat (limited to 'src/engine/VyOSElasticModernFulltextStorageEngine.php')
-rw-r--r--src/engine/VyOSElasticModernFulltextStorageEngine.php40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/engine/VyOSElasticModernFulltextStorageEngine.php b/src/engine/VyOSElasticModernFulltextStorageEngine.php
new file mode 100644
index 0000000..f11eeab
--- /dev/null
+++ b/src/engine/VyOSElasticModernFulltextStorageEngine.php
@@ -0,0 +1,40 @@
+<?php
+
+/**
+ * Placeholder for the engine class. Keep this abstract until E7/E8 land so
+ * it is not auto-discovered as a selectable backend before it can operate.
+ */
+abstract class VyOSElasticModernFulltextStorageEngine
+ extends PhabricatorFulltextStorageEngine {
+
+ public function getEngineIdentifier() {
+ return 'elasticsearch-modern';
+ }
+
+ public function getHostType() {
+ return new VyOSElasticModernHost($this);
+ }
+
+ public function reindexAbstractDocument(
+ PhabricatorSearchAbstractDocument $doc) {
+ throw new Exception(pht(
+ 'reindexAbstractDocument() is not yet implemented on '.
+ 'VyOSElasticModernFulltextStorageEngine; lands in Task E7.'));
+ }
+
+ public function executeSearch(PhabricatorSavedQuery $query) {
+ throw new Exception(pht(
+ 'executeSearch() is not yet implemented; lands in Task E8.'));
+ }
+
+ public function indexExists() {
+ throw new Exception(pht(
+ 'indexExists() is not yet implemented; lands in Task E8.'));
+ }
+
+ public function getIndexStats() {
+ throw new Exception(pht(
+ 'getIndexStats() is not yet implemented; lands in Task E8.'));
+ }
+
+}