question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Why do we need to inherit from Parent's class (join relationship) ?

See original GitHub issue

Hi, why do we need to inherit from Post class in this example ?

https://github.com/elastic/elasticsearch-dsl-py/blob/master/examples/parent_child.py#L88

Thx in advance !

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:7 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
ArtemBernatskyycommented, Apr 28, 2019

Now I get it why there is a point to inherit. Anyway, this breaks down to a single set of fields. I’ll leave this here, maybe it will help someone.

https://www.elastic.co/guide/en/elasticsearch/reference/6.0/removal-of-types.html https://www.elastic.co/blog/index-type-parent-child-join-now-future-in-elasticsearch

0reactions
ArtemBernatskyycommented, Sep 28, 2020

@teeeg haven’t worked with Elastic for a year, can’t help you now bro (

Read more comments on GitHub >

github_iconTop Results From Across the Web

Understanding Class Inheritance in Python 3 | DigitalOcean
Child classes inherit the methods of the parent class it belongs to, so each child class can make use of those methods within...
Read more >
Python Inheritance - W3Schools
Inheritance allows us to define a class that inherits all the methods and properties from another class. Parent class is the class being...
Read more >
Inheritance in Object Oriented Programming - Analytics Vidhya
An inheritance becomes multiple inheritances when a class inherits more than one parent class. The child class after inheriting properties from ...
Read more >
Composition vs. Inheritance - by Jake Lamb - Medium
Typically the relationship between a parent class and a child class is defined as an “Is A” relationship. In that the parent class...
Read more >
Inheritance and Polymorphism in VB.NET - InformIT
Multiple inheritance is demonstrated by a class that has more than one parent class. For example, you have physical attributes that can be ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found