In order to sort first by field A, and then by field B, you don't have to
use scripting, just specify those fields as the ones to sort by. In Java,
simply call SearchRequestBuilder#addSort twice, once for fieldA, and once
On Fri, Oct 29, 2010 at 12:52 AM, Weilie email@example.com wrote:
I am trying to do sorting by more than one fields with
CustomScoreQueryBuilder.script(). I looked at the document at
couldn't find any example for doing that. Looks like the most common type
If I want to sort by field A first, then by field B, how do I write such a
script? Is it possible at all?
View this message in context:
Sent from the ElasticSearch Users mailing list archive at Nabble.com.