org.elasticsearch.search.sort
Class SortBuilder

java.lang.Object
  extended by org.elasticsearch.search.sort.SortBuilder
All Implemented Interfaces:
ToXContent
Direct Known Subclasses:
FieldSortBuilder, GeoDistanceSortBuilder, ScoreSortBuilder, ScriptSortBuilder

public abstract class SortBuilder
extends Object
implements ToXContent


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
SortBuilder()
           
 
Method Summary
abstract  SortBuilder missing(Object missing)
          Sets the value when a field is missing in a doc.
abstract  SortBuilder order(SortOrder order)
          The order of sorting.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContent
toXContent
 

Constructor Detail

SortBuilder

public SortBuilder()
Method Detail

order

public abstract SortBuilder order(SortOrder order)
The order of sorting. Defaults to SortOrder.ASC.


missing

public abstract SortBuilder missing(Object missing)
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.



Copyright © 2009-2012. All Rights Reserved.