public abstract class SpatialQueryBuilderFromCoordinates extends Object
| Constructor and Description |
|---|
SpatialQueryBuilderFromCoordinates() |
| Modifier and Type | Method and Description |
|---|---|
static org.apache.lucene.search.Filter |
buildDistanceFilter(org.apache.lucene.search.Filter previousFilter,
Coordinates center,
double radius,
String coordinatesField)
Returns a Lucene filter to fine filter document by distance
|
static org.apache.lucene.search.Filter |
buildDistanceFilter(org.apache.lucene.search.Filter previousFilter,
Coordinates center,
double radius,
String latitudeField,
String longitudeField)
Returns a Lucene filter to fine filter document by distance
|
static org.apache.lucene.search.Query |
buildDistanceQuery(Coordinates center,
double radius,
String fieldName)
Returns a Lucene Query searching directly by computing distance against
all docs in the index (costly !)
|
static org.apache.lucene.search.Filter |
buildSpatialHashFilter(Coordinates center,
double radius,
String fieldName)
Returns a Lucene filter which rely on Hibernate Search Spatial
spatial hash indexation to filter document at radius
|
static org.apache.lucene.search.Query |
buildSpatialHashQuery(Coordinates center,
double radius,
String fieldName)
Returns a Lucene Query which rely on Hibernate Search Spatial
spatial hash indexation to filter document at radius by wrapping a
SpatialHashFilter
|
static org.apache.lucene.search.Query |
buildSpatialQueryByHash(Coordinates center,
double radius,
String fieldName)
Returns a Lucene Query which relies on Hibernate Search Spatial
spatial hash indexation to filter documents at radius and filter its results
by a fine DistanceFilter
|
static org.apache.lucene.search.Query |
buildSpatialQueryByRange(Coordinates centerCoordinates,
double radius,
String fieldName)
Returns a Lucene Query which rely on double numeric range query
on Latitude / Longitude
|
public static org.apache.lucene.search.Filter buildSpatialHashFilter(Coordinates center, double radius, String fieldName)
center - center of the search discusradius - distance max to center in kmfieldName - name of the Lucene Field implementing CoordinatesQuery,
Coordinates,
Filterpublic static org.apache.lucene.search.Filter buildDistanceFilter(org.apache.lucene.search.Filter previousFilter,
Coordinates center,
double radius,
String coordinatesField)
center - center of the search discusradius - distance max to center in kmcoordinatesField - name of the Lucene Field implementing CoordinatespreviousFilter - preceding filter in filter chain
Warning if passed null DistanceFilter constructor use a
filter wrapped match all query (time/resource consuming !)Query,
Coordinates,
DistanceFilter,
Filterpublic static org.apache.lucene.search.Filter buildDistanceFilter(org.apache.lucene.search.Filter previousFilter,
Coordinates center,
double radius,
String latitudeField,
String longitudeField)
center - center of the search discusradius - distance max to center in kmlatitudeField - name of the Lucene Field hosting latitudelongitudeField - name of the Lucene Field hosting longitudepreviousFilter - preceding filter in filter chain
Warning if passed null DistanceFilter constructor use a
filter wrapped match all query (time/ressource consuming !)Query,
Coordinates,
DistanceFilter,
Filterpublic static org.apache.lucene.search.Query buildSpatialHashQuery(Coordinates center, double radius, String fieldName)
center - center of the search discusradius - distance max to center in kmfieldName - name of the Lucene Field implementing CoordinatesQuery,
Coordinatespublic static org.apache.lucene.search.Query buildDistanceQuery(Coordinates center, double radius, String fieldName)
center - center of the search discusradius - distance max to center in kmfieldName - name of the Lucene Field implementing CoordinatesQuery,
Coordinatespublic static org.apache.lucene.search.Query buildSpatialQueryByHash(Coordinates center, double radius, String fieldName)
center - center of the search discusradius - distance max to center in kmfieldName - name of the Lucene Field implementing CoordinatesQuery,
Coordinatespublic static org.apache.lucene.search.Query buildSpatialQueryByRange(Coordinates centerCoordinates, double radius, String fieldName)
centerCoordinates - center of the search discusradius - distance max to center in kmfieldName - name of the Lucene Field implementing CoordinatesQuery,
CoordinatesCopyright © 2006–2017 Hibernate. All rights reserved.