public class ScoreSortBuilder extends SortBuilder
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
EMPTY_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) |
toString
public ScoreSortBuilder order(SortOrder order)
SortOrder.DESC
.order
in class SortBuilder
public SortBuilder missing(Object missing)
SortBuilder
missing
in class SortBuilder
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws IOException
IOException
Copyright © 2009–2016. All rights reserved.