Make spatial example more readable and fix bug where *:* did not show. Fixes #400

This commit is contained in:
Jan Høydahl 2018-06-11 21:21:43 +02:00
parent f76f7fc61f
commit 43fbf0321d
1 changed files with 6 additions and 1 deletions

View File

@ -109,7 +109,12 @@ When used with `BBoxField`, additional options are supported:
=== geofilt
The `geofilt` filter allows you to retrieve results based on the geospatial distance (AKA the "great circle distance") from a given point. Another way of looking at it is that it creates a circular shape filter. For example, to find all documents within five kilometers of a given lat/lon point, you could enter `&q=*:*&fq={!geofilt sfield=store}&pt=45.15,-93.85&d=5`. This filter returns all results within a circle of the given radius around the initial point:
The `geofilt` filter allows you to retrieve results based on the geospatial distance (AKA the "great circle distance") from a given point. Another way of looking at it is that it creates a circular shape filter. For example, to find all documents within five kilometers of a given lat/lon point, you could enter:
[source,text]
&q=*:*&fq={!geofilt sfield=store}&pt=45.15,-93.85&d=5
This filter returns all results within a circle of the given radius around the initial point:
image::images/spatial-search/circle.png[5KM radius]