org.hibernate.search.query.dsl.sort

## Interface SortDistanceFieldContext

- All Known Implementing Classes:
    ConnectedSortDistanceFieldContext

      public interface SortDistanceFieldContext

  A context from which one must define the reference coordinates to which the distance will be computed when sorting.
  Author:
    Emmanuel Bernard emmanuel@hibernate.org, Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `SortDistanceFieldAndReferenceContext` | `fromCoordinates(Coordinates coordinates)` Sort by the distance to the given `Coordinates`.
    `SortLatLongContext` | `fromLatitude(double latitude)` Sort by the distance to the given latitude and `subsequently-defined longitude`.

- - ### Method Detail

    - #### fromCoordinates

          SortDistanceFieldAndReferenceContext fromCoordinates(Coordinates coordinates)

      Sort by the distance to the given `Coordinates`.
      Parameters:
        `coordinates` - The reference coordinates to which the distance will be computed for each document.

    - #### fromLatitude

          SortLatLongContext fromLatitude(double latitude)

      Sort by the distance to the given latitude and `subsequently-defined longitude`.
      Parameters:
        `latitude` - The reference latitude, part of the coordinates to which the distance will be computed for each document.

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