django-elasticsearch-dsl-drf icon indicating copy to clipboard operation
django-elasticsearch-dsl-drf copied to clipboard

parent-child join field

Open maheshgawali opened this issue 6 years ago • 4 comments

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

maheshgawali avatar Jan 25 '19 09:01 maheshgawali

@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.
  • How to do filter that on elasticsearch-dsl level.

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).

barseghyanartur avatar Jan 25 '19 09:01 barseghyanartur

@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).

maheshgawali avatar Jan 28 '19 17:01 maheshgawali

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

Prakash2403 avatar Sep 02 '21 16:09 Prakash2403

@Prakash2403:

Please, proceed.

barseghyanartur avatar Sep 02 '21 20:09 barseghyanartur