Obviously, index 'identify_results' stores the data and index 'device_name_mapping' stores the property of this device. How can I query the 'identify_results' and sort them by the deviceName in the Elasticsearch? I found Elasticsearch is NoSQL database, one approach is I move 'deviceName' into the index 'identify_results', but It will be very trouble when I update the deviceName in the future. How can I achieve it in the Elasticsearch?
Thanks for answering. I have read the Join type before, but it looks like both of them should be in the same index. In my application, I have many index 'identify_results' but only one index 'device_name_mapping' so that It looks line not suitable for me.
Yes. That's the way you need to reindex your data.
Elasticsearch is not a relational database but a search engine.
As I said, ideally, I'd use only one document which contains everything including the device name.
Again, how often are you doing to rename a device? What is the cost of reindexing all data for this device?
Depending on your real use case, you could have multiple choices:
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.