Package org.hibernate.search.query.dsl
Interface SpatialContext
-
- All Superinterfaces:
QueryCustomization<SpatialContext>,SpatialMatchingContext
@Deprecated public interface SpatialContext extends QueryCustomization<SpatialContext>, SpatialMatchingContext
Deprecated.See the deprecation note onQueryBuilder.- Author:
- Emmanuel Bernard
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description SpatialMatchingContextonField(String fieldName)Deprecated.Used to select the spatial field/coordinates used for this query.-
Methods inherited from interface org.hibernate.search.query.dsl.QueryCustomization
boostedTo, filteredBy, withConstantScore
-
Methods inherited from interface org.hibernate.search.query.dsl.SpatialMatchingContext
within
-
-
-
-
Method Detail
-
onField
SpatialMatchingContext onField(String fieldName)
Deprecated.Used to select the spatial field/coordinates used for this query. If not specified, the default field (Spatial.COORDINATES_DEFAULT_FIELD) is used.Note: An entity can have multiple
Spatialannotations defining different sets of coordinates. Each non-defaultSpatialinstance has a name to identify it. Use this method to specify the targeted coordinate field.- Parameters:
fieldName- The name of the set of coordinates to target for the query- Returns:
SpatialMatchingContextinstance for continuation
-
-