I'm at the very start with ELK and have a question. I have 1 index that contains 2 document types, the first type contains the main info and the second contains multiple entries that relate to a key value in the first.
I can't see how I can query to extract data from both documents?
performing queries across multiple documents is only supported in a limited fashion in elasticsearch, because it is built to support a horizontal scaling strategy. Nevertheless, there are the has_child, has_parent and parent_id queries, which might help you - depending on your document structure. See the documentation regarding joining queries for details.
To define mappings you have to send PUT requests like these to the Elasticsearch server after it has been started. You could to that using curl, for example:
$ curl -X PUT 'http://localhost:9200/company' -d '{"mappings": {...}}'
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.