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 ids query #271

Merged
merged 5 commits into from
Jul 4, 2023
Merged

Conversation

filipmilo
Copy link
Contributor

@filipmilo filipmilo commented Jun 24, 2023

Part of #91

Copy link
Collaborator

@dbulaja98 dbulaja98 left a comment

Choose a reason for hiding this comment

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

Seems good overall. Can you just add website page for this query?

Comment on lines 754 to 766

/**
* Constructs an instance of [[zio.elasticsearch.query.IdsQuery]] using the specified parameters.
* [[zio.elasticsearch.query.IdsQuery]] is used for matching documents containing a value that matches a provided
* pattern value.
*
* @param values
* array of values that will be used for the query
* @return
* an instance of [[zio.elasticsearch.query.IdsQuery]] that represents the ids query to be performed.
*/
final def ids(value: String, values: String*): Ids[Any] =
Ids(values = Chunk.fromIterable(value +: values))
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you update scaladoc (you are missing value now).

Comment on lines 866 to 868
private[elasticsearch] final case class Ids[S](
values: Chunk[String]
) extends IdsQuery[S] { self =>
Copy link
Collaborator

Choose a reason for hiding this comment

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

Can this be in one line?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Can you add tests for encoding too?

@dbulaja98 dbulaja98 changed the title (dsl): Add idsQuery (dsl): Add ids query Jun 24, 2023
@dbulaja98 dbulaja98 changed the title (dsl): Add ids query (dsl): Support ids query Jun 24, 2023
@dbulaja98 dbulaja98 merged commit 3c90c43 into lambdaworks:main Jul 4, 2023
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.

2 participants