Currently when creating an Hybrid search and setting the Fusion Function this gets always set to Relative Score even when set to Ranked Fusion.
The root cause is a switch case with missing breaks that makes Ranked Fusion being overwritten by the Relative Score Function at Hybrid.java#L181-188.
if (fusionType != null) {
switch (fusionType) {
case RANKED:
hybrid.setFusionType(WeaviateProtoBaseSearch.Hybrid.FusionType.FUSION_TYPE_RANKED);
case RELATIVE_SCORE:
hybrid.setFusionType(WeaviateProtoBaseSearch.Hybrid.FusionType.FUSION_TYPE_RELATIVE_SCORE);
}
}
Currently when creating an Hybrid search and setting the Fusion Function this gets always set to Relative Score even when set to Ranked Fusion.
The root cause is a switch case with missing breaks that makes Ranked Fusion being overwritten by the Relative Score Function at Hybrid.java#L181-188.