barseghyanartur / django-elasticsearch-dsl-drf

Integrate Elasticsearch DSL with Django REST framework.
https://pypi.python.org/pypi/django-elasticsearch-dsl-drf
367 stars 117 forks source link

parent-child join field #107

Open maheshgawali opened 5 years ago

maheshgawali commented 5 years ago

I have a parent-child join field in my index and I am trying to use django-elasticsearch-dsl-drf for filtering through it.

I referred to the parent-child example from elasticsearch_dsl, but I am not sure how to use it with django-elasticsearch-dsl-drf

ref: https://www.elastic.co/guide/en/elasticsearch/reference/current/parent-join.html

barseghyanartur commented 5 years ago

@maheshgawali:

Good question. I haven't touched that part (yet), thus - it's not yet supported/implemented.

I see that some new queries shall be implemented (at least on the side of this package). I'm adding it to the TODOs, but I'm unsure when will I have time to implement that.

A couple of open questions are:

So, you could either (a) implement it yourself (in that case, I encourage you to submit a pull request upon success) or (b) ask me to do that (contact me for conditions; I could also assist you in doing 1) or (c) wait (this issue is left open until I or someone else have time for it).

maheshgawali commented 5 years ago

@maheshgawali:

Good question. I haven't touched that part (yet), thus - it's not yet supported/implemented.

I see that some new queries shall be implemented (at least on the side of this package). I'm adding it to the TODOs, but I'm unsure when will I have time to implement that.

A couple of open questions are:

  • How to do lay that relationship that on the document level.

do you mean something like foreign keys ?

  • How to do filter that on elasticsearch-dsl level.

still checking this

So, you could either (a) implement it yourself (in that case, I encourage you to submit a pull request upon success) or (b) ask me to do that (contact me for conditions; I could also assist you in doing 1) or (c) wait (this issue is left open until I or someone else have time for it).

Prakash2403 commented 3 years ago

@barseghyanartur Any updates on this issue? I probably can take it up if you(or anyone else) haven't started working on this.

barseghyanartur commented 3 years ago

@Prakash2403:

Please, proceed.