docs: public static <O> RangeQuery<O> getLinearScanSimilarityRangeQuery(SimilarityQuery<O> simQuery) {
      // Slight optimizations of linear scans
      if(simQuery instanceof PrimitiveSimilarityQuery) {
        final PrimitiveSimilarityQuery<O> pdq = (PrimitiveSimilarityQuery<O>) simQuery;
        return new LinearScanPrimitiveSimilarityRangeQuery<>(pdq);
      }
      return new LinearScanSimilarityRangeQuery<>(simQuery);
    }