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
- set a value for HYBRID_SEARCH_WEIGHTS
- run
ensure_search_pipeline_exists
- look at open search logs
Environment
- Version: main (as of 2026-02-27)
- Platform:
Possible Solution
Force cast of setting value.