Issue
I am new at elasticsearch and I'm trying to make a custom query with ElasticSearchRepository. Input Data :
List<Long> bookId;
Long authorId;
Timestamp from;
Timestamp to;
How could i find a number of books with List bookId, check that all of them has the same authorId and check that they were published between timestamp from ... to ... ?
For example i think that it could look like
List<Books> findAllBooks (List<Long> booksId, Long authorId, Timestomp from, TimeStamp to);
I use spring-boot-starter-data-elasticsearch
Solution
BoolQueryBuilder and NativeSearchQuery Api helps me a lot.
Answered By - FPS Bard
Answer Checked By - Mildred Charles (JavaFixing Admin)