This commit is contained in:
Andrea Cavalli 2022-01-17 18:12:12 +01:00
parent 4f19d2fff3
commit 08ef14fb76
2 changed files with 3 additions and 4 deletions

View File

@ -59,7 +59,7 @@ public interface LuceneIndex<T, U> extends LLSnapshottable {
Mono<Buckets> computeBuckets(@Nullable CompositeSnapshot snapshot,
@NotNull List<Query> queries,
@Nullable Query normalizaitonQuery,
@Nullable Query normalizationQuery,
BucketParams bucketParams);
Mono<TotalHitsCount> count(@Nullable CompositeSnapshot snapshot, Query query);

View File

@ -117,12 +117,11 @@ public class LuceneIndexImpl<T, U> implements LuceneIndex<T, U> {
@Override
public Mono<Buckets> computeBuckets(@Nullable CompositeSnapshot snapshot,
@NotNull List<Query> query,
@Nullable Query normalizaitonQuery,
@Nullable Query normalizationQuery,
BucketParams bucketParams) {
return luceneIndex
.computeBuckets(resolveSnapshot(snapshot),
query,
normalizaitonQuery,
query, normalizationQuery,
bucketParams
)
.single();