You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucene.apache.org by ct...@apache.org on 2018/02/15 18:40:50 UTC

lucene-solr:master: SOLR-11944: Ref Guide: Add examples of GeoJSON and WKT

Repository: lucene-solr
Updated Branches:
  refs/heads/master a0c0fb89b -> aa9bf0c6f


SOLR-11944: Ref Guide: Add examples of GeoJSON and WKT


Project: http://git-wip-us.apache.org/repos/asf/lucene-solr/repo
Commit: http://git-wip-us.apache.org/repos/asf/lucene-solr/commit/aa9bf0c6
Tree: http://git-wip-us.apache.org/repos/asf/lucene-solr/tree/aa9bf0c6
Diff: http://git-wip-us.apache.org/repos/asf/lucene-solr/diff/aa9bf0c6

Branch: refs/heads/master
Commit: aa9bf0c6f65b3cae3288e64fa7811cdbce600470
Parents: a0c0fb8
Author: Cassandra Targett <ct...@apache.org>
Authored: Thu Feb 15 12:40:11 2018 -0600
Committer: Cassandra Targett <ct...@apache.org>
Committed: Thu Feb 15 12:40:11 2018 -0600

----------------------------------------------------------------------
 solr/solr-ref-guide/src/spatial-search.adoc | 14 +++++++++++++-
 1 file changed, 13 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/lucene-solr/blob/aa9bf0c6/solr/solr-ref-guide/src/spatial-search.adoc
----------------------------------------------------------------------
diff --git a/solr/solr-ref-guide/src/spatial-search.adoc b/solr/solr-ref-guide/src/spatial-search.adoc
index 2739d05..315fa2a 100644
--- a/solr/solr-ref-guide/src/spatial-search.adoc
+++ b/solr/solr-ref-guide/src/spatial-search.adoc
@@ -55,7 +55,19 @@ For indexing geodetic points (latitude and longitude), supply it in "lat,lon" or
 
 For indexing non-geodetic points, it depends. Use `x y` (a space) if RPT. For PointType however, use `x,y` (a comma).
 
-If you'd rather use a standard industry format, Solr supports WKT and GeoJSON. However it's much bulkier than the raw coordinates for such simple data. (Not supported by the deprecated LatLonType or PointType)
+If you'd rather use a standard industry format, Solr supports https://en.wikipedia.org/wiki/Well-known_text[WKT] and http://geojson.org/[GeoJSON]. However it's much bulkier than the raw coordinates for such simple data. (Not supported by the deprecated LatLonType or PointType)
+
+=== Indexing GeoJSON and WKT
+
+Using the `bin/post` tool:
+
+[source,text]
+bin/post -type "application/json" -url "http://localhost:8983/solr/mycollection/update?format=geojson" /path/to/geojson.file
+
+The key parameter to pass in with your request is:
+
+`format`::
+The format of the file to pass in.  Accepted values: `WKT` or `geojson`.
 
 == Searching with Query Parsers