Parent child mapping & ttl on parent


(Wojciech Durczyński) #1

Hello.

Here is a gist with case I'm interested in:

I'd like child documents to be deleted together with parent document when
ttl elapsed.
If this is not possible than maybe at least _parent field in children
documents could be cleared when parent document is erased?

Regards.
Wojciech Durczyński


(Shay Banon) #2

It should be possible, can you open an issue?

On Mon, May 14, 2012 at 4:16 PM, Wojciech Durczyński <
wojciech.durczynski@comarch.com> wrote:

Hello.

Here is a gist with case I'm interested in:
https://gist.github.com/2693858

I'd like child documents to be deleted together with parent document when
ttl elapsed.
If this is not possible than maybe at least _parent field in children
documents could be cleared when parent document is erased?

Regards.
Wojciech Durczyński


(Wojciech Durczyński) #3

Issue created:

W dniu wtorek, 15 maja 2012 22:42:38 UTC+2 użytkownik kimchy napisał:

It should be possible, can you open an issue?

On Mon, May 14, 2012 at 4:16 PM, Wojciech Durczyński <
wojciech.durczynski@comarch.com> wrote:

Hello.

Here is a gist with case I'm interested in:
https://gist.github.com/2693858

I'd like child documents to be deleted together with parent document when
ttl elapsed.
If this is not possible than maybe at least _parent field in children
documents could be cleared when parent document is erased?

Regards.
Wojciech Durczyński


(pcdinh) #4

Hi,

Is there any update on this issue?

On Wednesday, May 16, 2012 3:36:44 PM UTC+7, Wojciech Durczyński wrote:

Issue created:

https://github.com/elasticsearch/elasticsearch/issues/1954

W dniu wtorek, 15 maja 2012 22:42:38 UTC+2 użytkownik kimchy napisał:

It should be possible, can you open an issue?

On Mon, May 14, 2012 at 4:16 PM, Wojciech Durczyński
wojciech.durczynski@com wrote:

Hello.

Here is a gist with case I'm interested in:
https://gist.github.com/2693858

I'd like child documents to be deleted together with parent document
when ttl elapsed.
If this is not possible than maybe at least _parent field in children
documents could be cleared when parent document is erased?

Regards.
Wojciech Durczyński


(Shay Banon) #5

You can follow the issue.

On Thu, Jun 7, 2012 at 9:05 PM, pcdinh pcdinh@gmail.com wrote:

Hi,

Is there any update on this issue?

On Wednesday, May 16, 2012 3:36:44 PM UTC+7, Wojciech Durczyński wrote:

Issue created:

https://github.com/**elasticsearch/elasticsearch/**issues/1954https://github.com/elasticsearch/elasticsearch/issues/1954

W dniu wtorek, 15 maja 2012 22:42:38 UTC+2 użytkownik kimchy napisał:

It should be possible, can you open an issue?

On Mon, May 14, 2012 at 4:16 PM, Wojciech Durczyński
wojciech.durczynski@com wrote:

Hello.

Here is a gist with case I'm interested in:
https://gist.github.com/**2693858 https://gist.github.com/2693858

I'd like child documents to be deleted together with parent document
when ttl elapsed.
If this is not possible than maybe at least _parent field in children
documents could be cleared when parent document is erased?

Regards.
Wojciech Durczyński


(system) #6