![]() Make a request: PUT testindex/_mapping/goods analyzer: tokenizer, here ik_max_wordis to use ik tokenizer.store: whether to store, the default is false.index: whether to index, the default is true.type: type, which can be text, long, short, date, integer, object, etc.Type name: It is the concept of type mentioned earlier, similar to different tables in the database.įield name: Fill it in arbitrarily, you can specify many attributes, for example:.The request method is still PUT PUT /indexname/_mapping/typename Only if the configuration is clear, Elasticsearch will help us create the index library 2.5.1. Mapping is the process of defining the document, which fields the document contains, whether these fields are saved, whether they are indexed, whether they are word segmentation, etc. With the index, the next step is definitely to add data. However, the mapping must be defined before adding data. Get request can help us view the index information, format: GET /index name Elasticsearch view index databaseĪlternatively, we can use * to query all index library configurations 1.4. Create with posman Elasticsearch create index by postmanĬan also be created successfully, but it is not convenient to use kibana 1.3. ![]() You can see that the index was created successfully. ![]() ![]() We try with kibana Elasticsearch create index by kibana Number_of_replicas: number of replicas 1.2.2. Replica (replica): replication of each shardĮlasticsearch adopts Rest style API, so its API is a http request, you can use any tool to initiate http request.Shard: The parts after the data is split.Index set (Indices, plural of index): logically complete index. ![]() Save the original data in the index library. For example, each product information is a documentįield data types, attributes, whether to index, whether to store and other characteristics There can be different types of indexes under an index library, such as commodity index and order index, and their data formats are different. However, this will lead to chaos in the index library, so this concept will be removed in a future version The type is to simulate the concept of table in mysql. Indices is the plural of index, representing many indexes,
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |