Skip to content

Impossible to set custom HYBRID_SEARCH_WEIGHTS value #63

@qbey

Description

@qbey

Bug Report

Problematic behavior
Impossible to set custom HYBRID_SEARCH_WEIGHTS value. When set in environment variable, the index creation fails with class_cast_exception: class java.lang.String cannot be cast to class java.lang.Double on OpenSearch.

Expected behavior/code
The HYBRID_SEARCH_WEIGHTS must be casted to a list of floats before being sent to OpenSearch in ensure_search_pipeline_exists.

Steps to Reproduce

  1. set a value for HYBRID_SEARCH_WEIGHTS
  2. run ensure_search_pipeline_exists
  3. look at open search logs

Environment

  • Version: main (as of 2026-02-27)
  • Platform:

Possible Solution
Force cast of setting value.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions