zio-elasticsearch icon indicating copy to clipboard operation
zio-elasticsearch copied to clipboard

Implement Query API

Open drmarjanovic opened this issue 2 years ago • 4 comments

Queries

  • [x] fuzzyQuery
  • [ ] geoBoundingBoxQuery
  • [x] geoDistanceQuery
  • [x] geoPolygonQuery
  • [ ] geoShapeQuery
  • [x] hasChildQuery
  • [x] hasParentQuery
  • [x] idsQuery
  • [ ] intervalsQuery
  • [x] matchBooleanPrefixQuery
  • [x] matchPhraseQuery
  • [x] matchPhrasePrefixQuery
  • [x] multiMatchQuery
  • [x] nestedQuery
  • [x] prefixQuery
  • [x] regexpQuery
  • [x] scriptQuery
  • [ ] scriptScoreQuery
  • [ ] shapeQuery
  • [ ] simpleQueryStringQuery
  • [x] termsQuery
  • [x] termsSetQuery
  • [ ] queryStringQuery

Tips

  • Find comprehensive info about the query you are going to implement here
  • Define query in zio.elasticsearch.query.Queries
  • Define the public method that represents DSL for the query in the zio.elasticsearch.ElasticQuery, add scaladoc and website documentation for it
  • Support additional parameters such as "boost", "case insensitive", etc. in the zio.elasticsearch.query package
  • Provide unit tests in the zio.elasticsearch.ElasticQuerySpec to confirm behavior
  • Provide integration tests (it module) in the zio.elasticsearch.HttpExectorSpec to confirm the behavior
  • 😇 Feel free to extend other tests as well
  • 😊 Feel free to address any follow-up issue either for the query you are implementing or implemented one already

Note: You can use #48 as a reference. If you feel that the pull request size is growing out of control, feel free to split it but make sure to link this issue in each of the related PRs.

drmarjanovic avatar Feb 08 '23 23:02 drmarjanovic

I'm taking prefixQuery

petarcurcin avatar Jun 24 '23 08:06 petarcurcin

I'm taking geoPolygonQuery

LeonaNedeljkovic avatar Jun 24 '23 08:06 LeonaNedeljkovic

I'm taking geoShapeQuery

bojanbla avatar Jun 24 '23 08:06 bojanbla

Taking idsQuery

filipmilo avatar Jun 24 '23 12:06 filipmilo