Skip to content

Commit

Permalink
fix import
Browse files Browse the repository at this point in the history
  • Loading branch information
staron committed May 11, 2022
1 parent f5aff59 commit f5e6a43
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion search/query/match_phrase.go
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ package query
import (
"fmt"

index "github.com/blevesearch/bleve_index_api"
"github.com/ltraniello/bleve/v2/analysis"
"github.com/ltraniello/bleve/v2/mapping"
"github.com/ltraniello/bleve/v2/search"
index "github.com/blevesearch/bleve_index_api"
)

type MatchPhraseQuery struct {
Expand Down Expand Up @@ -89,6 +89,7 @@ func (q *MatchPhraseQuery) Searcher(i index.IndexReader, m mapping.IndexMapping,
phrase := tokenStreamToPhrase(tokens)
phraseQuery := NewMultiPhraseQuery(phrase, field)
phraseQuery.SetBoost(q.BoostVal.Value())
options.Slop = q.Slop
return phraseQuery.Searcher(i, m, options)
}
noneQuery := NewMatchNoneQuery()
Expand Down

0 comments on commit f5e6a43

Please sign in to comment.