|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hibernate.search.spatial.impl.SpatialQueryBuilderFromPoint
public abstract class SpatialQueryBuilderFromPoint
The SpatialQueryBuilder holds builder methods for Quad Tree, Distance and Spatial (Quad Tree+Distance) filters and queries
Constructor Summary | |
---|---|
SpatialQueryBuilderFromPoint()
|
Method Summary | |
---|---|
static org.apache.lucene.search.Filter |
buildDistanceFilter(org.apache.lucene.search.Filter previousFilter,
Point 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,
Point center,
double radius,
String latitudeField,
String longitudeField)
Returns a Lucene filter to fine filter document by distance |
static org.apache.lucene.search.Query |
buildDistanceQuery(Point 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 |
buildQuadTreeFilter(Point center,
double radius,
String fieldName)
Returns a Lucene filter which rely on Hibernate Search Spatial quad tree indexation to filter document at radius |
static org.apache.lucene.search.Query |
buildQuadTreeQuery(Point center,
double radius,
String fieldName)
Returns a Lucene Query which rely on Hibernate Search Spatial quad tree indexation to filter document at radius by wrapping a QuadTreeFilter |
static org.apache.lucene.search.Query |
buildSpatialQueryByQuadTree(Point center,
double radius,
String fieldName)
Returns a Lucene Query which relies on Hibernate Search Spatial quad tree indexation to filter documents at radius and filter its results by a fine DistanceFilter |
static org.apache.lucene.search.Query |
buildSpatialQueryByRange(Point center,
double radius,
String fieldName)
Returns a Lucene Query which rely on double numeric range query on Latitude / Longitude |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SpatialQueryBuilderFromPoint()
Method Detail |
---|
public static org.apache.lucene.search.Filter buildQuadTreeFilter(Point center, double radius, String fieldName)
center
- center of the search discusradius
- distance max to center in kmfieldName
- name of the Lucene Field implementing Coordinates
Query
,
Coordinates
,
Filter
public static org.apache.lucene.search.Filter buildDistanceFilter(org.apache.lucene.search.Filter previousFilter, Point 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
,
Filter
public static org.apache.lucene.search.Filter buildDistanceFilter(org.apache.lucene.search.Filter previousFilter, Point 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
,
Filter
public static org.apache.lucene.search.Query buildQuadTreeQuery(Point center, double radius, String fieldName)
center
- center of the search discusradius
- distance max to center in kmfieldName
- name of the Lucene Field implementing Coordinates
Query
,
Coordinates
public static org.apache.lucene.search.Query buildDistanceQuery(Point center, double radius, String fieldName)
center
- center of the search discusradius
- distance max to center in kmfieldName
- name of the Lucene Field implementing Coordinates
Query
,
Coordinates
public static org.apache.lucene.search.Query buildSpatialQueryByQuadTree(Point center, double radius, String fieldName)
center
- center of the search discusradius
- distance max to center in kmfieldName
- name of the Lucene Field implementing Coordinates
Query
,
Coordinates
public static org.apache.lucene.search.Query buildSpatialQueryByRange(Point center, double radius, String fieldName)
center
- center of the search discusradius
- distance max to center in kmfieldName
- name of the Lucene Field implementing Coordinates
Query
,
Coordinates
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |