Instead of having a reserved null value (-1 in this case), use an Object float for `minScore` in ShardTermsByQueryRequest and TermsByQueryRequest. Then we can just do a null check:
```java
if (request.minScore() != null) {
```