From d85179fb24e5787f0968566797fc8db96f3c105c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20H=C3=B8ydahl?= Date: Mon, 11 Jun 2018 10:20:53 +0200 Subject: [PATCH] Put example query on its own line. Also fixes bug where asterisks in *:* did not show --- solr/solr-ref-guide/src/spatial-search.adoc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/solr/solr-ref-guide/src/spatial-search.adoc b/solr/solr-ref-guide/src/spatial-search.adoc index 315fa2ae79cd..cd84b6affe72 100644 --- a/solr/solr-ref-guide/src/spatial-search.adoc +++ b/solr/solr-ref-guide/src/spatial-search.adoc @@ -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]