Provide support to increase developer productivity in Java when using Elasticsearch. Uses familiar Spring concepts such as a template classes for core API usage and lightweight repository style data access.
This should be trivial to fix - I could provide a pull request if you're interested.
Otherwise if this behavior is intended, a little note would be helpful :)
Hi,
I recently stumbled upon an unexpected behavior when trying to sort a query response using
org.springframework.data.elasticsearch.core.query.Order
.Creating a new order like
new Order(Sort.Direction.DESC, "somefield", Mode.min);
results in mode beingnull
instead ofMin.min
.When looking at the other constructors I could trace the error down to line 72 where
null
is passed instead of mode:This should be trivial to fix - I could provide a pull request if you're interested. Otherwise if this behavior is intended, a little note would be helpful :)
thanks and best regards