Skip to content

Commit

Permalink
MB-61640: Fuzzy Dynamic Scoring
Browse files Browse the repository at this point in the history
 - Propagating edit distance from vellum
  • Loading branch information
Likith101 committed Oct 22, 2024
1 parent 5f8f0f0 commit d446671
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions dict.go
Original file line number Diff line number Diff line change
Expand Up @@ -165,6 +165,9 @@ func (i *DictionaryIterator) Next() (*index.DictEntry, error) {
return nil, nil
}
term, postingsOffset := i.itr.Current()
if fitr, ok := i.itr.(vellum.FuzzyIterator); ok {

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, ubuntu-latest)

undefined: vellum.FuzzyIterator

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, macos-latest)

undefined: vellum.FuzzyIterator

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

undefined: vellum.FuzzyIterator

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, macos-latest)

undefined: vellum.FuzzyIterator

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

undefined: vellum.FuzzyIterator

Check failure on line 168 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, macos-latest)

undefined: vellum.FuzzyIterator
i.entry.EditDistance = fitr.Distance()

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, ubuntu-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.20.x, macos-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, ubuntu-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.21.x, macos-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, ubuntu-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)

Check failure on line 169 in dict.go

View workflow job for this annotation

GitHub Actions / test (1.22.x, macos-latest)

i.entry.EditDistance undefined (type index.DictEntry has no field or method EditDistance)
}
i.entry.Term = string(term)
if !i.omitCount {
i.err = i.tmp.read(postingsOffset, i.d)
Expand Down

0 comments on commit d446671

Please sign in to comment.