pdphilip / laravel-elasticsearch

Laravel Elasticsearch: An Elasticsearch implementation of Laravel's Eloquent ORM
MIT License
86 stars 16 forks source link

Join in elasticSearch #9

Closed davoodf1995 closed 9 months ago

davoodf1995 commented 9 months ago

Thanks for best supporting I want to use join and left join with eloquent

pdphilip commented 9 months ago

You should use relations instead of joins since Elasticsearch has no joins. This is the case for NoSQL database engines in general. Also the point really.

See here regarding relationships: https://github.com/pdphilip/laravel-elasticsearch#relationships

Good luck with your project!