-
Notifications
You must be signed in to change notification settings - Fork 18
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
Conversation
ed4f882
to
a583d9c
Compare
There was a problem hiding this 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?
|
||
/** | ||
* 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)) |
There was a problem hiding this comment.
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).
private[elasticsearch] final case class Ids[S]( | ||
values: Chunk[String] | ||
) extends IdsQuery[S] { self => |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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?
Part of #91