Skip to content

Add Query by Example feature #2418

Closed
@ezequielantunez

Description

@ezequielantunez

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:

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions