Closed
Description
Hi spring-data-elasticsearch team.
I'd like to contribute to this project implementing Query by Example feature from Spring Data.
I found this feature extremely useful in the past. The use case is to avoid custom repositories method explosion for queries based on nullable fields filter models.
My initial approach is to create the following implementations:
public class QueryByExampleElasticsearchExecutor<T> implements QueryByExampleExecutor<T>
public class ReactiveQueryByExampleElasticsearchExecutor<T> implements ReactiveQueryByExampleExecutor<T>
and use them as fragments in repository factories.
I have an initial working version based on CriteriaQuery, for simplicity, but missing of the following features:
- ExampleMatcher.StringMatcher.REGEX which I think is not supported by Criteria API
- findByBy with Fluent query function method. I would need some support here or spend more time investigating about it.