|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.elasticsearch.search.sort.SortBuilder org.elasticsearch.search.sort.FieldSortBuilder
public class FieldSortBuilder
A sort builder to sort based on a document field.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
ToXContent.MapParams, ToXContent.Params |
Field Summary |
---|
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent |
---|
EMPTY_PARAMS |
Constructor Summary | |
---|---|
FieldSortBuilder(java.lang.String fieldName)
Constructs a new sort based on a document field. |
Method Summary | |
---|---|
FieldSortBuilder |
missing(java.lang.Object missing)
Sets the value when a field is missing in a doc. |
FieldSortBuilder |
order(SortOrder order)
The order of sorting. |
XContentBuilder |
toXContent(XContentBuilder builder,
ToXContent.Params params)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public FieldSortBuilder(java.lang.String fieldName)
fieldName
- The field name.Method Detail |
---|
public FieldSortBuilder order(SortOrder order)
SortOrder.ASC
.
order
in class SortBuilder
public FieldSortBuilder missing(java.lang.Object missing)
missing
in class SortBuilder
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
java.io.IOException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |