Skip to content

Commit

Permalink
Update AddSearchAfter from elasticsearch plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
idrissneumann committed Nov 21, 2023
1 parent 650d925 commit 8c6c4bb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/quickwit/client/search_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -101,11 +101,11 @@ func (b *SearchRequestBuilder) Sort(order SortOrder, field string, unmappedType
return b
}

func (b *SearchRequestBuilder) AddSearchAfter(value interface{}) *SearchRequestBuilder {
func (b *SearchRequestBuilder) AddSearchAfter(value any) *SearchRequestBuilder {
if b.customProps["search_after"] == nil {
b.customProps["search_after"] = []interface{}{value}
b.customProps["search_after"] = []any{value}
} else {
b.customProps["search_after"] = append(b.customProps["search_after"].([]interface{}), value)
b.customProps["search_after"] = append(b.customProps["search_after"].([]any), value)
}

return b
Expand Down

0 comments on commit 8c6c4bb

Please sign in to comment.