N - The type of the next context (returned by sortFirst(), for example).public interface FieldSortMissingValueContext<N>
| Modifier and Type | Method and Description |
|---|---|
N |
sortFirst()
Put documents with missing values first in the sorting.
|
N |
sortLast()
Put documents with missing values last in the sorting.
|
N |
use(Object value)
When documents are missing a value on the sort field, use the given value instead.
|
N sortLast()
This instruction is independent of whether the sort is being ascending or descending.
N sortFirst()
This instruction is independent of whether the sort is being ascending or descending.
N use(Object value)
value - The value to use as a default when a document is missing a value on the sort field.SearchException - If the field is not numeric.Copyright © 2006-2019 Red Hat, Inc. and others. Licensed under the GNU Lesser General Public License (LGPL), version 2.1 or later.