meilisearch-java
meilisearch-java copied to clipboard
Make the SearchRequest class a builder
Description
The class SearchRequest
has many attributes and it's difficult to create initializers that will suit every possible case. It will be better to use builder instead.
Basic example
SearchRequest.builder()
.q("")
.offset(10)
.limit(200)
.cropLength(5)
.cropMarker("…")
.build();