Browse Source

add missing setter method for SetSearchBefore (#1237)

tags/v0.8.0
Tyler Kovacs Marty Schoch 5 months ago
parent
commit
75cdaca51a
1 changed files with 6 additions and 0 deletions
  1. +6
    -0
      search.go

+ 6
- 0
search.go View File

@@ -342,6 +342,12 @@ func (r *SearchRequest) SetSearchAfter(after []string) {
r.SearchAfter = after
}

// SetSearchBefore sets the request to skip over hits with a sort
// value greater than the provided sort before key
func (r *SearchRequest) SetSearchBefore(before []string) {
r.SearchBefore = before
}

// UnmarshalJSON deserializes a JSON representation of
// a SearchRequest
func (r *SearchRequest) UnmarshalJSON(input []byte) error {


Loading…
Cancel
Save