Skip to content

Bug: Fusion Function on Hybrid ends up Relative Score even when using Ranked Fusion. #572

Description

@pm390

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);
      }
    }

Metadata

Metadata

Assignees

No one assigned

    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