Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[ES 1.3.2] NullPointerException while parsing hasParent query/filter #7349
Having single incorrect type which references to inexisting parent results in NPE while executing hasParent query/filter on another - correct - type.
To reproduce the issue please refer to description below.
Mapping for type with missing parent type:
Add something to parents (corrent one) to create mapping:
Above query is gonna fail with NullPointerException without possiblity to catch a real problem (debug helps here :)),
Btw. Query on incorrect type (children2) fails fine since it throws: