-
Notifications
You must be signed in to change notification settings - Fork 697
Open
Description
We would like to use custom ordering function when sorting matched documents. Right now ordering uses simple Go string comparison, but we would prefer to use ordering by using Collator (or more generally by custom Less function).
How would you suggest to implement such feature?
I see at least two possibilities:
- change
SortOrdertype into a struct withLessfunction. - keep
SortOrderas-is (slice), but changeSortOrder.Comparefunction to take explicitLessfunction. This would require propagation ofLessfunction fromSearchRequest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels