Skip to content

Commit 4263e45

Browse files
talevydavidkyle
authored andcommitted
specifies which index to search in docs for various queries (elastic#43307)
the geo-bounding-box and phrase-suggest docs were susceptible to failing due to other indices in the cluster. This change restricts the queries to the index that is set up for the test. relates to elastic#43271.
1 parent 5af9387 commit 4263e45

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

docs/reference/query-dsl/geo-bounding-box-query.asciidoc

+9-9
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ Then the following simple query can be executed with a
3939

4040
[source,js]
4141
--------------------------------------------------
42-
GET /_search
42+
GET my_locations/_search
4343
{
4444
"query": {
4545
"bool" : {
@@ -94,7 +94,7 @@ representations of the geo point, the filter can accept it as well:
9494

9595
[source,js]
9696
--------------------------------------------------
97-
GET /_search
97+
GET my_locations/_search
9898
{
9999
"query": {
100100
"bool" : {
@@ -129,7 +129,7 @@ conform with http://geojson.org/[GeoJSON].
129129

130130
[source,js]
131131
--------------------------------------------------
132-
GET /_search
132+
GET my_locations/_search
133133
{
134134
"query": {
135135
"bool" : {
@@ -157,7 +157,7 @@ Format in `lat,lon`.
157157

158158
[source,js]
159159
--------------------------------------------------
160-
GET /_search
160+
GET my_locations/_search
161161
{
162162
"query": {
163163
"bool" : {
@@ -183,7 +183,7 @@ GET /_search
183183

184184
[source,js]
185185
--------------------------------------------------
186-
GET /_search
186+
GET my_locations/_search
187187
{
188188
"query": {
189189
"bool" : {
@@ -208,7 +208,7 @@ GET /_search
208208

209209
[source,js]
210210
--------------------------------------------------
211-
GET /_search
211+
GET my_locations/_search
212212
{
213213
"query": {
214214
"bool" : {
@@ -243,7 +243,7 @@ geohash the geohash can be specified in both `top_left` and
243243

244244
[source,js]
245245
--------------------------------------------------
246-
GET /_search
246+
GET my_locations/_search
247247
{
248248
"query": {
249249
"geo_bounding_box" : {
@@ -273,7 +273,7 @@ values separately.
273273

274274
[source,js]
275275
--------------------------------------------------
276-
GET /_search
276+
GET my_locations/_search
277277
{
278278
"query": {
279279
"bool" : {
@@ -323,7 +323,7 @@ are not supported. Here is an example:
323323

324324
[source,js]
325325
--------------------------------------------------
326-
GET /_search
326+
GET my_locations/_search
327327
{
328328
"query": {
329329
"bool" : {

docs/reference/search/suggesters/phrase-suggest.asciidoc

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ The response contains suggestions scored by the most likely spell correction fir
224224

225225
[source,js]
226226
--------------------------------------------------
227-
POST _search
227+
POST test/_search
228228
{
229229
"suggest": {
230230
"text" : "noble prize",
@@ -293,7 +293,7 @@ properties that can be configured.
293293

294294
[source,js]
295295
--------------------------------------------------
296-
POST _search
296+
POST test/_search
297297
{
298298
"suggest": {
299299
"text" : "obel prize",
@@ -414,7 +414,7 @@ accept ordinary analyzer names.
414414

415415
[source,js]
416416
--------------------------------------------------
417-
POST _search
417+
POST test/_search
418418
{
419419
"suggest": {
420420
"text" : "obel prize",

0 commit comments

Comments
 (0)