Skip to content

Commit

Permalink
Fix Broken Test (#2102)
Browse files Browse the repository at this point in the history
- Fix expected hits due to fuzzy dynamic scoring
  • Loading branch information
CascadingRadium authored Nov 21, 2024
1 parent 38f1737 commit 60489d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions search_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -3669,7 +3669,7 @@ func TestAutoFuzzy(t *testing.T) {
"fuzziness": 2,
"field" : "model"
}`,
expectHits: []string{"product1", "product2", "product7", "product14", "product12", "product10", "product15", "product3", "product6", "product8"},
expectHits: []string{"product1", "product2", "product7", "product14", "product15", "product12", "product10", "product3", "product6", "product8"},
},
{
// match query with fuzziness set to "auto"
Expand Down Expand Up @@ -3707,7 +3707,7 @@ func TestAutoFuzzy(t *testing.T) {
"fuzziness": 2,
"field" : "model"
}`,
expectHits: []string{"product10", "product6"},
expectHits: []string{"product6", "product10"},
},
// match phrase query with fuzziness set to "auto"
{
Expand Down

0 comments on commit 60489d6

Please sign in to comment.