diff options
| author | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-22 11:38:59 +0300 |
|---|---|---|
| committer | Yuriy Andamasov <yuriy@vyos.io> | 2026-05-23 13:22:40 +0300 |
| commit | a529a40ec8569a7010df4965c4e7fff9e81eb125 (patch) | |
| tree | a41f533085c735de921db4e98c4097e086bda070 /src/engine/VyOSElasticModernFulltextStorageEngine.php | |
| parent | 13ca7a3fdb812467b57c6c4d33e13f69cf3cdcc3 (diff) | |
| download | phorge-elasticsearch-modern-a529a40ec8569a7010df4965c4e7fff9e81eb125.tar.gz phorge-elasticsearch-modern-a529a40ec8569a7010df4965c4e7fff9e81eb125.zip | |
Engine: Add buildTypeFilter() helper (body-level documentType filter)
🤖 Generated by [robots](https://vyos.io)
Diffstat (limited to 'src/engine/VyOSElasticModernFulltextStorageEngine.php')
| -rw-r--r-- | src/engine/VyOSElasticModernFulltextStorageEngine.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/engine/VyOSElasticModernFulltextStorageEngine.php b/src/engine/VyOSElasticModernFulltextStorageEngine.php index e21021f..316a02b 100644 --- a/src/engine/VyOSElasticModernFulltextStorageEngine.php +++ b/src/engine/VyOSElasticModernFulltextStorageEngine.php @@ -40,6 +40,14 @@ abstract class VyOSElasticModernFulltextStorageEngine return '/_search'; } + public function buildTypeFilter(array $types) { + return array( + 'terms' => array( + 'documentType' => array_values($types), + ), + ); + } + public function getEngineIdentifier() { return 'elasticsearch-modern'; } |
