-
-
Save henesgokdag/6a7d7438f47bdf5c31c6907577481eeb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Repository | |
public interface ProductRepository extends ElasticsearchRepository<Product,String> { | |
@Query("{\"bool\": {\"must\": [{\"match\": {\"name\": \"?0\"}}]}}") | |
List<Product> findByName(String name); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment