Skip to content

[Backport 1.x] Use target_index_body for engine detection instead of radial_engine - #1101

Merged
rishabh6788 merged 1 commit into
opensearch-project:1.xfrom
opensearch-ci-bot:backport/backport-1099-to-1.x
Aug 10, 2026
Merged

[Backport 1.x] Use target_index_body for engine detection instead of radial_engine#1101
rishabh6788 merged 1 commit into
opensearch-project:1.xfrom
opensearch-ci-bot:backport/backport-1099-to-1.x

Conversation

@opensearch-ci-bot

Copy link
Copy Markdown

Backport d1aea17 from #1099.

…pensearch-project#1099)

Signed-off-by: Wenxin Li <liwenxin@amazon.com>
Co-authored-by: Wenxin Li <liwenxin@amazon.com>
(cherry picked from commit d1aea17)
Signed-off-by: opensearch-ci-bot <opensearch-infra@amazon.com>
Comment on lines +1162 to 1167
index_body = params.get("target_index_body", "")
if "lucene" in index_body.lower():
self.radial_engine = "lucene"
else:
self.radial_engine = "faiss"

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are we just looking for the word lucene in whole index body and deciding?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

target_index_body is a file path (e.g. "indices/lucene-index.json"), not the file contents. We're just checking whether "lucene" appears in that short path string, which is reliable since all repo index body files follow this naming convention. We check the engine because the ground truth stores pre-computed thresholds per engine. Validated locally with both Faiss and Lucene benchmarks.

@rishabh6788
rishabh6788 merged commit 3be4a0c into opensearch-project:1.x Aug 10, 2026
12 checks passed
@opensearch-ci-bot
opensearch-ci-bot deleted the backport/backport-1099-to-1.x branch August 10, 2026 17:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants