Skip to content
This repository was archived by the owner on Sep 21, 2021. It is now read-only.

Commit 56c4c3d

Browse files
keezeekpolyfractal
authored andcommitted
Correct analyze queries for fields (#474)
Use the request body format instead of the older query-params
1 parent bc773fc commit 56c4c3d

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

052_Mapping_Analysis/45_Mapping.asciidoc

+6-2
Original file line numberDiff line numberDiff line change
@@ -279,10 +279,14 @@ name. Compare the output of these two requests:
279279
[source,js]
280280
--------------------------------------------------
281281
GET /gb/_analyze?field=tweet
282-
Black-cats <1>
282+
{
283+
"text": "Black-cats" <1>
284+
}
283285
284286
GET /gb/_analyze?field=tag
285-
Black-cats <1>
287+
{
288+
"text": "Black-cats" <1>
289+
}
286290
--------------------------------------------------
287291
// SENSE: 052_Mapping_Analysis/45_Mapping.json
288292
<1> The text we want to analyze is passed in the body.

0 commit comments

Comments
 (0)