org.elasticsearch.search.sort
Class ScoreSortBuilder
java.lang.Object
org.elasticsearch.search.sort.SortBuilder
org.elasticsearch.search.sort.ScoreSortBuilder
- All Implemented Interfaces:
- ToXContent
public class ScoreSortBuilder
- extends SortBuilder
A sort builder allowing to sort by score.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ScoreSortBuilder
public ScoreSortBuilder()
order
public ScoreSortBuilder order(SortOrder order)
- The order of sort scoring. By default, its
SortOrder.DESC
.
- Specified by:
order
in class SortBuilder
missing
public SortBuilder missing(Object missing)
- Description copied from class:
SortBuilder
- Sets the value when a field is missing in a doc. Can also be set to _last or
_first to sort missing last or first respectively.
- Specified by:
missing
in class SortBuilder
toXContent
public XContentBuilder toXContent(XContentBuilder builder,
ToXContent.Params params)
throws IOException
- Throws:
IOException
Copyright © 2009-2012. All Rights Reserved.