InterviewSolution
| 1. |
What do you mean by the term ‘type’ in ElasticSearch? |
|
Answer» Types are logical categories or parts of an index whose semantics are determined by the user. Elasticsearch clusters can consist of multiple Indices (databases), each of which contains several Types (tables). A TYPE HOLDS multiple Documents (rows), and every document has some Properties (COLUMNS). By using types, multiple DATA types can be stored in the same index, thus reducing the total number of indices. Example: Suppose, in your CAR manufacturing scenario, you had a Tatafactory index. There are three types (tables) in this index as follows:
Every type then contains documents relevant to that type (e.g. a Tata Innova document is housed in the Cars type). In this document, you can find all the information about the particular car. |
|