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
 ScoreSortBuilder order(SortOrder order)
          The order of sort scoring.
 void 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

toXContent

public void toXContent(XContentBuilder builder,
                       ToXContent.Params params)
                throws java.io.IOException
Throws:
java.io.IOException