Click here to Skip to main content
15,884,298 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to search multi types data in elasticsearch just like db's compound query. I am a green hand about elasticsearch ,I want to kown how to query data which in diffrent types.

GET books/fiction,adventure/_search
{
"query": {
"match_all": {}
}
}

please give some search condition,and the result comes from multi types ,just like db db's compound query.

select t1.*,t2.age,t3.name from t1 left join t2 on t1.id=t2.t1_id left join t3 on t3.id=t2.id
where t1.age>3 and t3.name like '....................

What I have tried:

I try to ask people from stackoverflow ,but they are lazy
Posted
Comments
dan!sh 8-Feb-17 0:09am    
"I try to ask people from stackoverflow ,but they are lazy": You do understand people are not obligated to do your work. Only person looking lazy here is you.

Apart from spraying forums with your question, have you yourself tried anything?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900