Why do we need to inherit from Parent's class (join relationship) ?
See original GitHub issueHi, 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:
- Created 4 years ago
- Comments:7 (6 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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
@teeeg haven’t worked with Elastic for a year, can’t help you now bro (