mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-03-29 19:38:29 +00:00
parent
41507cff48
commit
97bba08ea6
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
The get API allows to get a typed JSON document from the index based on
|
The get API allows to get a typed JSON document from the index based on
|
||||||
its id. The following example gets a JSON document from an index called
|
its id. The following example gets a JSON document from an index called
|
||||||
twitter, under a type called `_doc``, with id valued 1:
|
twitter, under a type called `_doc`, with id valued 1:
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
@ -113,7 +113,7 @@ String json = Strings.toString(builder);
|
|||||||
==== Index document
|
==== Index document
|
||||||
|
|
||||||
The following example indexes a JSON document into an index called
|
The following example indexes a JSON document into an index called
|
||||||
twitter, under a type called `_doc``, with id valued 1:
|
twitter, under a type called `_doc`, with id valued 1:
|
||||||
|
|
||||||
[source,java]
|
[source,java]
|
||||||
--------------------------------------------------
|
--------------------------------------------------
|
||||||
|
Loading…
x
Reference in New Issue
Block a user