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

Support Elastic primitive for UUID #183

Merged
merged 5 commits into from
Apr 25, 2023

Conversation

markaya
Copy link
Contributor

@markaya markaya commented Apr 25, 2023

Summary:

  • Introduce Elastic Primitive for java.UUID
  • Add tests for creating query with each Elastic Primitive

Comment on lines 33 to 35
test("successfully create matches query with Long") {
assert(matches(FieldName, 1.toLong))(equalTo(Match[Any, Long](FieldName, 1.toLong, boost = None)))
},
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 do something like 1L?

@drmarjanovic drmarjanovic changed the title Support elastic primitive for UUID Support Elastic primitive for UUID Apr 25, 2023

import java.util.UUID

object ElasticPrimitivesSpec extends ZIOSpecDefault {
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
object ElasticPrimitivesSpec extends ZIOSpecDefault {
object ElasticPrimitiveSpec extends ZIOSpecDefault {


object ElasticPrimitivesSpec extends ZIOSpecDefault {

private val fieldName = "fieldName"
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
private val fieldName = "fieldName"
private val FieldName = "fieldName"

@drmarjanovic drmarjanovic merged commit c7bfd44 into main Apr 25, 2023
@drmarjanovic drmarjanovic deleted the task-support-elastic-primitive-for-uuid branch April 25, 2023 09:08
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