Skip to content

Commit ad8b87e

Browse files
fix: change PhraseSlop's type to float64 from int64
1 parent 9b0184f commit ad8b87e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

es/query_string.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -463,8 +463,8 @@ func (q queryStringType) QuoteAnalyzer(value string) queryStringType {
463463
// Returns:
464464
//
465465
// The updated es.queryStringType object with the "phrase_slop" option set.
466-
func (q queryStringType) PhraseSlop(value int64) queryStringType {
467-
return q.putInTheField("phrase_slop", value)
466+
func (q queryStringType) PhraseSlop(slop float64) queryStringType {
467+
return q.putInTheField("phrase_slop", slop)
468468
}
469469

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

0 commit comments

Comments
 (0)