org.elasticsearch.search.sort
Class ScoreSortBuilder

java.lang.Object
  extended by org.elasticsearch.search.sort.SortBuilder
      extended by org.elasticsearch.search.sort.ScoreSortBuilder
All Implemented Interfaces:
ToXContent

public class ScoreSortBuilder
extends SortBuilder

A sort builder allowing to sort by score.


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
ScoreSortBuilder()
           
 
Method Summary
 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)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ScoreSortBuilder

public ScoreSortBuilder()
Method Detail

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.