Moved nested query into join-queries file as Elasticsearch documentation groups it under join queries
Moved ScoreMode enum from inside nested query to join-queries file as has_parent and has_child use the same score modes
Changed filter source extension functions to extend on JsonDsl rather than SearchDsl so that they can be used for inner hits in parent and child queries
Added documentation for join queries (Left nested query as a TODO as I don't have any experience using nested queries)
Implements https://github.com/jillesvangurp/kt-search/issues/116
Adds support for remaining join queries: has_parent, has_child and parent_id (https://www.elastic.co/guide/en/elasticsearch/reference/current/joining-queries.html)
Changes to note:
join-queries
file as Elasticsearch documentation groups it under join queriesScoreMode
enum from inside nested query tojoin-queries
file as has_parent and has_child use the same score modesJsonDsl
rather thanSearchDsl
so that they can be used for inner hits in parent and child querieshas_parent
Produces:
has_child
Produces:
parent_id
Produces: