Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(dsl): Support 'hasChild' query #191

Merged
merged 5 commits into from
Apr 27, 2023
Merged

Conversation

markaya
Copy link
Contributor

@markaya markaya commented Apr 27, 2023

Resolves hasChildQuery in #91

Summary:

  • Add support for creating has_child query
  • Add tests for creation and encodin has_child query
  • fix scaladoc for HasParent creation methods

* @param childType
* a name of the child relationship mapped for the join field
* @param query
* query you wish to run on child documents of the child `type` field
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A [[ElasticQuery]] ...

Comment on lines 121 to 122
* an instance of [[zio.elasticsearch.query.HasChildQuery]] that represents the has parent query to be performed.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..has child query..

Comment on lines 135 to 136
* an instance of [[zio.elasticsearch.query.HasChildQuery]] that represents the has parent query to be performed.
*/
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

..has child query..

* @param childType
* a name of the child relationship mapped for the join field
* @param query
* query you wish to run on child documents of the child `type` field
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A [[ElasticQuery]] ...

def maxChildren(value: Int): HasChildQuery[S]

/**
* Sets the `minChildren` parameter parameter for the [[HasChildQuery]].
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
* Sets the `minChildren` parameter parameter for the [[HasChildQuery]].
* Sets the `minChildren` parameter for the [[HasChildQuery]].

@drmarjanovic drmarjanovic changed the title (dsl): Support Has Child query (dsl): Support 'hasChild' query Apr 27, 2023
@drmarjanovic drmarjanovic merged commit 95a5ca2 into main Apr 27, 2023
@drmarjanovic drmarjanovic deleted the task-support-has-child-query branch April 27, 2023 12:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants