org.hibernate.search.query.dsl.sort.impl

## Class NativeSortField

- java.lang.Object
- - org.apache.lucene.search.SortField
  - - org.hibernate.search.query.dsl.sort.impl.NativeSortField

-     public class NativeSortField
      extends SortField

  A SortField extension that simply serves as a data holder, to be detected and interpreted by non-Lucene backend implementations (Elasticsearch in particular).
  Author:
    Yoann Rodiere

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.apache.lucene.search.SortField

      `SortField.Type`

  - ### Field Summary

    - ### Fields inherited from class org.apache.lucene.search.SortField

      `FIELD_DOC, FIELD_SCORE, missingValue, STRING_FIRST, STRING_LAST`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `NativeSortField(String fieldName, String nativeSortFieldDescription)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `String` | `getNativeSortDescription()`

    - ### Methods inherited from class org.apache.lucene.search.SortField

      `equals, getBytesComparator, getComparator, getComparatorSource, getField, getReverse, getType, hashCode, needsScores, rewrite, setBytesComparator, setMissingValue, toString`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### NativeSortField

          public NativeSortField(String fieldName,
                                 String nativeSortFieldDescription)

  - ### Method Detail

    - #### getNativeSortDescription

          public String getNativeSortDescription()

      Returns:
        the native sort description

Copyright © 2006-2017 Red Hat, Inc. All Rights Reserved