org.hibernate.search.query.dsl.sort

## Interface SortDistanceNoFieldContext

- All Known Implementing Classes:
    ConnectedSortDistanceNoFieldContext

      public interface SortDistanceNoFieldContext

  Author:
    Emmanuel Bernard emmanuel@hibernate.org, Yoann Rodiere

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method and Description
    --- | ---
    `SortDistanceFieldContext` | `onField(String fieldName)` Order elements by distance computed from the coordinates carried by the given field.

- - ### Method Detail

    - #### onField

          SortDistanceFieldContext onField(String fieldName)

      Order elements by distance computed from the coordinates carried by the given field.

      The distance is computed between the value of the given field (which must be a `Spatial` field) and reference coordinates, to be provided in the `next context`.

      Parameters:
        `fieldName` - The name of the index field carrying the spatial coordinates.

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