how to query in elasticsearch the following sql query
select * from tbl1.name where tbl1.id = tbl2.id;
I have index the two table with the same field as the columns in the table
and I do not want to change the mapping
Can two types be connected with a common field and get the query out of it
.
That field which is primary field(type) on one index and foreign(type) key
in another.Like we do in sql.
IMHO, thinking YesSQL in a NoSQL world is not the best way to solve
problems if your aim is to have the fastest response time when you search
for documents.
I mean that in term of search point of view, you should perhaps design your
documents regarding the way you want to query them.
So, in your example, why not sending to ES a document containing tbl1
content AND tbl2 content ?
I have index the two table with the same field as the columns in the table
and I do not want to change the mapping
Can two types be connected with a common field and get the query out of it
.
That field which is primary field(type) on one index and foreign(type) key
in another.Like we do in sql.
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.