Skip to content

Commit

Permalink
update UPGRADING.md
Browse files Browse the repository at this point in the history
  • Loading branch information
channel-dante committed Dec 23, 2023
1 parent 889f789 commit 2dde48a
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions UPGRADING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,19 @@

## [UPGRADING 2.x to 3.0]
### SearchAfter of SearchRequest type
- Changed SearchAfter of SearchRequest type to FieldValue instead of String
- Consider using `FieldValue.of("")` to make string type values compatible.
- Changed SearchAfter of SearchRequest type to FieldValue instead of String ([#769](https://github.com/opensearch-project/opensearch-java/pull/769))
- Consider using `FieldValue.of` to make string type values compatible.

Before:
```
.searchAfter("string")
.searchAfter("string1", "string2")
.searchAfter(List.of("String"))
```

After:
```
.searchAfter(FieldValue.of("string"))
.searchAfter(FieldValue.of("string1"), FieldValue.of("string2"))
.searchAfter(List.of(FieldValue.of("String")))
```

0 comments on commit 2dde48a

Please sign in to comment.