Now i need Data whose userid :910 matches in employee,users table only.
(userid :910 exists both employee,users table so i need to get the first_name:sachin .
Is there anyway ?
As you have a list of values and not complex JSON documents there is no point on using a nested mapping.
I do not understand what you are looking to achieve. It would be helpful if you could provide an example of the query input you would like to supply and the result you are looking for. Note that Elasticsearch does not support joins between documents, so you may need to change how you are indexing data.
You can do that by only querying document 1 as this contains all the data required. What is the point of considering document 3?
As explained earlier Elasticsearch does not support joins, so if you want to consider data in both documents you need to denormalise your data. What you seem to want to do is not possible in Elasticsearch.
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.