## Uses of Interface
org.hibernate.search.spatial.Coordinates

- Packages that use Coordinates
  Package | Description
  --- | ---
  org.hibernate.search |
  org.hibernate.search.elasticsearch.query.impl |
  org.hibernate.search.jpa |
  org.hibernate.search.query.dsl | Provide a domain specific language to write Lucene queries and create faceting requests.
  org.hibernate.search.query.dsl.impl |
  org.hibernate.search.query.dsl.sort |
  org.hibernate.search.query.dsl.sort.impl |
  org.hibernate.search.query.engine.impl |
  org.hibernate.search.query.engine.spi |
  org.hibernate.search.query.hibernate.impl |
  org.hibernate.search.spatial |
  org.hibernate.search.spatial.impl |

- - ### Uses of Coordinates in org.hibernate.search

    Methods in org.hibernate.search with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `FullTextQuery` | FullTextQuery.`setSpatialParameters(Coordinates center, String fieldName)`

  - ### Uses of Coordinates in org.hibernate.search.elasticsearch.query.impl

    Methods in org.hibernate.search.elasticsearch.query.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `com.google.gson.JsonObject` | ElasticsearchQueryFactory.`createSpatialDistanceScript(Coordinates center, String spatialFieldName)`
    `com.google.gson.JsonObject` | Elasticsearch5QueryFactory.`createSpatialDistanceScript(Coordinates center, String spatialFieldName)`
    `com.google.gson.JsonObject` | Elasticsearch2QueryFactory.`createSpatialDistanceScript(Coordinates center, String spatialFieldName)`

  - ### Uses of Coordinates in org.hibernate.search.jpa

    Methods in org.hibernate.search.jpa with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `FullTextQuery` | FullTextQuery.`setSpatialParameters(Coordinates center, String fieldName)` Defines the center of the spatial search for this query to project distance in results

  - ### Uses of Coordinates in org.hibernate.search.query.dsl

    Methods in org.hibernate.search.query.dsl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `SpatialTermination` | WithinContext.`ofCoordinates(Coordinates coordinates)` Coordinate object representing the center of the search

  - ### Uses of Coordinates in org.hibernate.search.query.dsl.impl

    Methods in org.hibernate.search.query.dsl.impl that return Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `Coordinates` | SpatialQueryContext.`getCoordinates()`

    Methods in org.hibernate.search.query.dsl.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `void` | SpatialQueryContext.`setCoordinates(Coordinates coordinates)`

  - ### Uses of Coordinates in org.hibernate.search.query.dsl.sort

    Methods in org.hibernate.search.query.dsl.sort with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `SortDistanceFieldAndReferenceContext` | SortDistanceFieldContext.`fromCoordinates(Coordinates coordinates)` Sort by the distance to the given `Coordinates`.

  - ### Uses of Coordinates in org.hibernate.search.query.dsl.sort.impl

    Methods in org.hibernate.search.query.dsl.sort.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `SortDistanceFieldAndReferenceContext` | ConnectedSortDistanceFieldContext.`fromCoordinates(Coordinates coordinates)`
    `void` | SortFieldStates.`setCoordinates(Coordinates coordinates)`

  - ### Uses of Coordinates in org.hibernate.search.query.engine.impl

    Fields in org.hibernate.search.query.engine.impl declared as Coordinates
    Modifier and Type | Field and Description
    --- | ---
    `protected Coordinates` | AbstractHSQuery.`spatialSearchCenter`

    Methods in org.hibernate.search.query.engine.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `HSQuery` | AbstractHSQuery.`setSpatialParameters(Coordinates center, String fieldName)`

    Constructors in org.hibernate.search.query.engine.impl with parameters of type Coordinates
    Constructor and Description
    `QueryHits(LazyQueryState searcher, QueryFilters filters, Sort sort, Integer n, TimeoutManagerImpl timeoutManager, Map<FacetingRequest,FacetMetadata> facetingRequestsAndMetadata, Coordinates spatialSearchCenter, String spatialFieldName)`
    `QueryHits(LazyQueryState searcher, QueryFilters filters, Sort sort, TimeoutManagerImpl timeoutManager, Map<FacetingRequest,FacetMetadata> facetingRequestsAndMetadata, Coordinates spatialSearchCenter, String spatialFieldName)`

  - ### Uses of Coordinates in org.hibernate.search.query.engine.spi

    Methods in org.hibernate.search.query.engine.spi with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `HSQuery` | HSQuery.`setSpatialParameters(Coordinates center, String fieldName)` setSpatialParameters.

  - ### Uses of Coordinates in org.hibernate.search.query.hibernate.impl

    Methods in org.hibernate.search.query.hibernate.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `FullTextQueryImpl` | FullTextQueryImpl.`setSpatialParameters(Coordinates center, String fieldName)`

  - ### Uses of Coordinates in org.hibernate.search.spatial

    Methods in org.hibernate.search.spatial that return Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `Coordinates` | DistanceSortField.`getCenter()`

    Constructors in org.hibernate.search.spatial with parameters of type Coordinates
    Constructor and Description
    `DistanceSortField(Coordinates center, String fieldName)`
    `DistanceSortField(Coordinates center, String fieldName, boolean reverse)`

  - ### Uses of Coordinates in org.hibernate.search.spatial.impl

    Classes in org.hibernate.search.spatial.impl that implement Coordinates
    Modifier and Type | Class and Description
    --- | ---
    `class` | `Point` Normalized latitude,longitude holder (in [-90;90],[-180,180]) with distance and destination computations methods

    Methods in org.hibernate.search.spatial.impl with parameters of type Coordinates
    Modifier and Type | Method and Description
    --- | ---
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildDistanceQuery(Coordinates center, double radius, String fieldName)` Returns a Lucene Query searching directly by computing distance against all docs in the index (costly !)
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildDistanceQuery(Query approximationQuery, Coordinates center, double radius, String coordinatesField)` Returns a Lucene query to match documents by distance to a center.
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildDistanceQuery(Query approximationQuery, Coordinates center, double radius, String latitudeField, String longitudeField)` Returns a Lucene query to match documents by distance to a center.
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildSpatialHashQuery(Coordinates center, double radius, String fieldName)` Returns a Lucene query to match documents by distance to a center, relying only on spatial hashes.
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildSpatialQueryByHash(Coordinates center, double radius, String fieldName)` Returns a Lucene query to match documents by distance to a center, relying first on spatial hash to approximate the result, and then on a more precise (but more costly) `DistanceQuery`.
    `static Query` | SpatialQueryBuilderFromCoordinates.`buildSpatialQueryByRange(Coordinates centerCoordinates, double radius, String fieldName)` Returns a Lucene Query which rely on double numeric range query on Latitude / Longitude
    `static Rectangle` | Rectangle.`fromBoundingCircle(Coordinates centerCoordinates, double radius)` Compute appropriate bounding box on Earth with pole and prime meridian crossing checks
    `static Point` | Point.`fromCoordinates(Coordinates center)`
    `static List<String>` | SpatialHelper.`getSpatialHashCellsIds(Coordinates center, double radius, int spatialHashLevel)` Generate a spatial hash cell ids list for the bounding box of a circular search area

    Constructors in org.hibernate.search.spatial.impl with parameters of type Coordinates
    Constructor and Description
    `DistanceCollector(Coordinates centerCoordinates, int hitsCount, String fieldname)`
    `DistanceComparatorSource(Coordinates center)`
    `DistanceQuery(Query approximationQuery, Coordinates centerCoordinates, double radius, String coordinatesField)` Construct a distance query to match document distant at most of radius from center Point
    `DistanceQuery(Query approximationQuery, Coordinates centerCoordinates, double radius, String latitudeField, String longitudeField)` Construct a distance query to match document distant at most of radius from center Point

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