Use TESTSETUP instead of TEST[continued]

This commit is contained in:
Isabel Drost-Fromm 2016-05-10 12:46:00 +02:00
parent a865090cf3
commit 754a677ff5
1 changed files with 3 additions and 14 deletions

View File

@ -2,7 +2,8 @@
=== Geo Distance Query === Geo Distance Query
Filters documents that include only hits that exists within a specific Filters documents that include only hits that exists within a specific
distance from a geo point. Assuming the following mapping: distance from a geo point. Assuming the following mapping and indexed
document:
[source,js] [source,js]
-------------------------------------------------- --------------------------------------------------
@ -22,14 +23,7 @@ PUT /my_locations
} }
} }
} }
--------------------------------------------------
// CONSOLE
... and indexed document:
[source,js]
--------------------------------------------------
PUT /my_locations/location/1 PUT /my_locations/location/1
{ {
"pin" : { "pin" : {
@ -41,7 +35,7 @@ PUT /my_locations/location/1
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued] // TESTSETUP
Then the following simple query can be executed with a `geo_distance` Then the following simple query can be executed with a `geo_distance`
@ -70,7 +64,6 @@ GET /my_locations/location/_search
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued]
[float] [float]
==== Accepted Formats ==== Accepted Formats
@ -104,7 +97,6 @@ GET /my_locations/location/_search
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued]
[float] [float]
===== Lat Lon As Array ===== Lat Lon As Array
@ -132,7 +124,6 @@ GET /my_locations/location/_search
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued]
[float] [float]
@ -160,7 +151,6 @@ GET /my_locations/location/_search
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued]
[float] [float]
===== Geohash ===== Geohash
@ -185,7 +175,6 @@ GET /my_locations/location/_search
} }
-------------------------------------------------- --------------------------------------------------
// CONSOLE // CONSOLE
// TEST[continued]
[float] [float]
==== Options ==== Options