mirror of https://github.com/apache/lucene.git
remove numeric encoding reference from GeoPointTokenStream javadocs
This commit is contained in:
parent
060cacfdab
commit
f7df322ca5
|
@ -48,15 +48,11 @@ import static org.apache.lucene.spatial.geopoint.document.GeoPointField.PRECISIO
|
|||
* GeoPointField geoPointField = new GeoPointField(fieldName1, lat, lon, GeoPointField.TYPE_NOT_STORED);
|
||||
* document.add(geoPointField);
|
||||
*
|
||||
* // query by bounding box (default uses TermEncoding.PREFIX)
|
||||
* // query by bounding box
|
||||
* Query q = new GeoPointInBBoxQuery(fieldName1, minLat, maxLat, minLon, maxLon);
|
||||
*
|
||||
* // using numeric terms
|
||||
* geoPointField = new GeoPointField(fieldName2, lat, lon, GeoPointField.NUMERIC_TYPE_NOT_STORED);
|
||||
* document.add(geoPointField);
|
||||
*
|
||||
* // query by distance (requires TermEncoding.NUMERIC)
|
||||
* q = new GeoPointDistanceQuery(fieldName2, TermEncoding.NUMERIC, centerLat, centerLon, radiusMeters);
|
||||
* // query by distance
|
||||
* q = new GeoPointDistanceQuery(fieldName2, centerLat, centerLon, radiusMeters);
|
||||
* </pre>
|
||||
*
|
||||
* @lucene.experimental
|
||||
|
|
Loading…
Reference in New Issue