Skip to content

Commit

Permalink
fix: change PhraseSlop's type to float64 from int64
Browse files Browse the repository at this point in the history
  • Loading branch information
GokselKUCUKSAHIN committed Jan 27, 2025
1 parent 9b0184f commit ad8b87e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions es/query_string.go
Original file line number Diff line number Diff line change
Expand Up @@ -463,8 +463,8 @@ func (q queryStringType) QuoteAnalyzer(value string) queryStringType {
// Returns:
//
// The updated es.queryStringType object with the "phrase_slop" option set.
func (q queryStringType) PhraseSlop(value int64) queryStringType {
return q.putInTheField("phrase_slop", value)
func (q queryStringType) PhraseSlop(slop float64) queryStringType {
return q.putInTheField("phrase_slop", slop)
}

// QuoteFieldSuffix sets the field suffix to be used for quoted text in the es.queryStringType object.
Expand Down

0 comments on commit ad8b87e

Please sign in to comment.