zio-elasticsearch
zio-elasticsearch copied to clipboard
Implement Query API
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 thezio.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.
I'm taking prefixQuery
I'm taking geoPolygonQuery
I'm taking geoShapeQuery
Taking idsQuery