Merge pull request #29875 from backstage/es-query-options

Pass queryOptions to ElasticSearchSearchEngine
This commit is contained in:
Vincenzo Scamporlino
2025-05-08 18:55:29 +02:00
committed by GitHub
2 changed files with 8 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-search-backend-module-elasticsearch': patch
---
Fixed an issue where the `search.elasticsearch.queryOptions` config were not picked up by the `ElasticSearchSearchEngine`.
@@ -192,6 +192,9 @@ export class ElasticSearchSearchEngine implements SearchEngine {
config.getOptional<ElasticSearchHighlightOptions>(
'search.elasticsearch.highlightOptions',
),
config.getOptional<ElasticSearchQueryConfig>(
'search.elasticsearch.queryOptions',
),
);
for (const indexTemplate of this.readIndexTemplateConfig(