Skip to content

Commit 48e9d48

Browse files
Made geo into its own part, and removed percolation
1 parent 96d859a commit 48e9d48

29 files changed

+238
-271
lines changed

310_Geolocation/10_Intro.asciidoc renamed to 04_Geolocation.asciidoc

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
[[geoloc]]
2-
== Geolocation
2+
= Geolocation
33

4+
[partintro]
5+
--
46
Gone are the days when we wander around a city with paper maps. Thanks to
57
smartphones, we now know exactly where we are all of the time, and we expect
68
websites to use that information. I'm not interested in restaurants in
@@ -29,5 +31,6 @@ other hand, are used purely for filtering. They can be used to decide whether
2931
two shapes overlap or not, or whether one shape completely contains other
3032
shapes.
3133

34+
--
3235

3336

310_Geolocation.asciidoc

Lines changed: 0 additions & 56 deletions
This file was deleted.

310_Geolocation/40_Geohashes.asciidoc

Lines changed: 0 additions & 177 deletions
This file was deleted.

310_Geopoints.asciidoc

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
include::310_Geopoints/20_Geopoints.asciidoc[]
2+
3+
include::310_Geopoints/30_Filter_by_geopoint.asciidoc[]
4+
5+
include::310_Geopoints/32_Bounding_box.asciidoc[]
6+
7+
include::310_Geopoints/34_Geo_distance.asciidoc[]
8+
9+
include::310_Geopoints/36_Caching_geofilters.asciidoc[]
10+
11+
include::310_Geopoints/38_Reducing_memory.asciidoc[]
12+
13+
include::310_Geopoints/50_Sorting_by_distance.asciidoc[]
14+

310_Geolocation/20_Geopoints.asciidoc renamed to 310_Geopoints/20_Geopoints.asciidoc

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,12 @@
1-
[[indexing-geopoints]]
2-
=== Indexing geo-points
1+
[[geopoints]]
2+
== Geo-points
3+
4+
A geo-point is a single latitude-longitude point on the Earth's surface. They
5+
can be used to calculate distance from a point, to determine whether a point
6+
falls within a bounding box, or in aggregations.
37

48
Geo-points cannot be automatically detected with
5-
<<dynamic-mapping,dynamic mapping>>. Instead, geo-points fields should be
9+
<<dynamic-mapping,dynamic mapping>>. Instead, `geo_point` fields should be
610
mapped explicitly:
711

812
[source,json]
@@ -25,7 +29,8 @@ PUT /attractions
2529
-----------------------
2630

2731
[[lat-lon-formats]]
28-
==== Lat/Lon formats
32+
[float]
33+
=== Lat/Lon formats
2934

3035
With the `location` field defined as a `geo_point`, we can proceed to index
3136
documents containing latitude/longitude pairs, which can be formatted as
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)