diff --git a/search-impl/src/main/scala/com/example/elasticsearch/request/Query.scala b/search-impl/src/main/scala/com/example/elasticsearch/request/Query.scala index eb5dafe..9985eec 100644 --- a/search-impl/src/main/scala/com/example/elasticsearch/request/Query.scala +++ b/search-impl/src/main/scala/com/example/elasticsearch/request/Query.scala @@ -7,11 +7,14 @@ case class BooleanQuery(must_not: Filter, must: Seq[Filter]) case class Query(bool: BooleanQuery) -case class QueryRoot(pageNumber: Int, - pageSize: Int, +case class QueryRoot(from: Int, + size: Int, query: Query, sort: Seq[SortField] = Seq(Sorters.auctionEndDescending(), Sorters.priceAscending()) - ) + ) { + val pageNumber: Int = from + val pageSize: Int = size +} object BooleanQuery {