You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the fields marked default would get appended if no user sort is given
the fields marked both default and always would get appended regarless of user input
This allows to stabilize order if you're sorting on a user-controllable property and all the values are the same, Elasticsearch will not keep the same order with each query.
The text was updated successfully, but these errors were encountered:
dkarlovi
changed the title
[Core] apply to specify "always on" search fields
[Core] apply to specify "always on" sort fields
Feb 13, 2019
Currently
Currently, we allow something like this:
This means if you specify
name: foo
name:foo; @field: ASC
name: foo; @field: desc
name:foo; @field: DESC
Would like
This means if you specify
name: foo
name:foo; @field: ASC; @id: ASC
name: foo; @id: desc
name:foo; @id: DESC
name: foo; @field: desc
name:foo; @field: DESC; @id: ASC
So
default
would get appended if no user sort is givendefault
andalways
would get appended regarless of user inputThis allows to stabilize order if you're sorting on a user-controllable property and all the values are the same, Elasticsearch will not keep the same order with each query.
The text was updated successfully, but these errors were encountered: