Kibana provides great convenience for quick familiarity with elasticsearch operations, and is familiar with several basic operations through Kibana. CREATE INDEX
Opening dev Tools in Kibana opens the interface shown in the following figure:
On the left is the command window, the result of execution on the right.
The following is the creation of an index called Blog_index, which contains two type:user and blogpost,
PUT Blog_index {"mappings": {"user": {"Properties": {"title": {"type": "Text" },
"name": {"Type": "Text" },
"age": {"type": "Integer"}
}
,
"blogpost": {
"Properties": {"
title": {"type": "Text" },
"body": {"type": "Text" },
"user_id": {
"type": "keyword"
},
"created": {
"type": "date",
"format": "Strict_ date_optional_time| | Epoch_millis "}}}}}
As shown in figure:
The result on the right indicates successful execution
You can add the Index pattern by management->index patterns below,
Click the Create button to save. Index Document
The following index is a user document, as follows:
{
"title": "Manager",
"name": "Tom Jerry",
"age":
The Execute command is post Blog_index/user, which indicates that a document of type user is added to Blog_index. As you can see from the output on the right, adding a document succeeds and automatically _id a search
First, you can see the document you just added through Kibana's discover:
If you complete the search by command, the result is:
The command executed is:
Get/blog_index/user/_search
{"
query": {"
match": {
"name": "Jerry"
}}}
Note: There cannot be a blank line between the command line and the parameter