public class ScoreSortBuilder extends SortBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.ParamsEMPTY_PARAMS| Constructor and Description |
|---|
ScoreSortBuilder() |
| Modifier and Type | Method and Description |
|---|---|
SortBuilder |
missing(Object missing)
Sets the value when a field is missing in a doc.
|
ScoreSortBuilder |
order(SortOrder order)
The order of sort scoring.
|
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params) |
toStringpublic ScoreSortBuilder order(SortOrder order)
SortOrder.DESC.order in class SortBuilderpublic SortBuilder missing(Object missing)
SortBuildermissing in class SortBuilderpublic XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOExceptionCopyright © 2009–2017. All rights reserved.