elasticsearch-definitive-guide | The Definitive Guide to Elasticsearch | Learning library
kandi X-RAY | elasticsearch-definitive-guide Summary
kandi X-RAY | elasticsearch-definitive-guide Summary
This repository contains the sources to the "Definitive Guide to Elasticsearch" which you can read online.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elasticsearch-definitive-guide
elasticsearch-definitive-guide Key Features
elasticsearch-definitive-guide Examples and Code Snippets
Community Discussions
Trending Discussions on elasticsearch-definitive-guide
QUESTION
I started reading the documentation about Elasticsearch
, and I read about _type
metadata element, in Elasticsearch documentation:
Elasticsearch exposes a feature called types which allows you to logically partition data inside of an index. Documents in different types may have different fields, but it is best if they are highly similar.
So my question is: In which situations the best practice is to split documents into types? Because in the documentation, they wrote that the documents in different _types
should have similar fields.
ANSWER
Answered 2017-May-04 at 17:32Let's say you create a new index "WWW" and the types of it would be "http" and "https". Both types have the same mapping and fields. It would be easier to search all the "http" documents like this:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elasticsearch-definitive-guide
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page