Sorting Results

By default, results are sorted according to their text_relevance scores, with the highest-scoring items listed first. You can use the rank parameter in your search requests to sort results alphabetically or numerically.

You can use any result-enabled text or literal field to sort results alphabetically. For example, rank=jurisdiction is specified in the following query to sort the results alphabetically:

../search?q=read+write&return-fields=jurisdiction&rank=jurisdiction

By default, results are listed in an ascending order. To sort in descending order, prefix the field name with - (minus sign):

../search?q=read+write&return-fields=jurisdiction&rank=-jurisdiction

Note

If you don't specify the rank option, it is set to -text_relevance by default so the highest-scoring items are listed first.