Condition 01:-1:
in index01 have ducument/column id(1211) that is matching with index02.
Condition 02:-1:
in index02 we have same document/column id(1211) but i want to display index02 document/column only like-firstname,lastname,dob based on matching HP(1111).
Data01/index01
id location ph HP
1211 UK 0977 1111
1212 UK 0933 2222
Data02/index02
FN LN DOB id
lal pal 12301999 1211
hapl oue 12041988 1212
I want only FETCH data when Provide HP=1111 THEN display records
FN LN DOB ID
This is a whole different approach, you would need to check if it's valid for your use case. First, you need to have a sense of what's the "main" index, let's say it's index01. With that defined, you will need to reindex index01 and there would be no index02. While reindexing index01 it would need to already join, during indexing, with index02 given that the joined resulting document would not have many documents from index02 (10s are fine, close or higher then 100s would maybe cause memory issues). Now, if you only need to query documents from index01 with a matching document in the inner collection with documents from index02 in which the query uses just a single attribute, then you are fine, but if the query is complex then you will need either Nested or Join.
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.