-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Closed
Labels
Description
Sort() on SearchDescriptor works in an unexpected way: you can call it multiple times and mutate SearchDescriptor's state. Where everywhere else chaining the same method twice will override the previous value in a descriptors state.
Proposal change from:
client.Search<T>(s=>s
.Sort()
.SortScript()
)to
client.Search<T>(s=>s
.Sort(sort=>sort
.Ascending()
.Descending()
.ScriptDescending()
....
)