org.hibernate.search.query.dsl
Interface SpatialContext

All Superinterfaces:
QueryCustomization<SpatialContext>
All Known Implementing Classes:
ConnectedSpatialContext

public interface SpatialContext
extends QueryCustomization<SpatialContext>

Author:
Emmanuel Bernard
Experimental
This API might change in minor versions

Method Summary
 SpatialMatchingContext onCoordinates(String field)
          An entity can have multiple Spatial annotations defining different sets of coordinates.
 SpatialMatchingContext onDefaultCoordinates()
          Used to create Spatial Queries on the default coordinates of an entity.
 
Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
 

Method Detail

onDefaultCoordinates

SpatialMatchingContext onDefaultCoordinates()
Used to create Spatial Queries on the default coordinates of an entity. This is the one to use when Spatial is being used without defining a custom value for Spatial.name().

Returns:

onCoordinates

SpatialMatchingContext onCoordinates(String field)
An entity can have multiple Spatial annotations defining different sets of coordinates. Each non-default Spatial instance has a name to identify it, use this method to pick one of these non-default coordinate fields.

Parameters:
field - The name of the set of coordinates to target for the query
Returns:


Copyright © 2006-2013 Red Hat Middleware, LLC. All Rights Reserved