Changelog
0.0.6
- Added
withIndex
method toSearchQuery
- allows to specify index for onlt one query. In the contrastwithIndex
method onCluster
will override index for all search queries. - Deleted
body
andprettyBody
getters fromSearchQuery
- this is done in order to allow passing compiler version as an argument when multiple elasticsearch versions support will be implemented. - Added
toPrettyJSON
method toSearchQuery
- was known aspretyBody
getter. The reason is same as above.
0.0.5
Added instance mapper support
It's possible now to pass a function which map ids from elasticsearch to structure definded by instance mapper function.
When specifying source(false)
, elasticsearch returns only _id of found document in hit._source
field.
See an example in docs