From 06cab8f39730591863dbcb32c720bafccc101e1b Mon Sep 17 00:00:00 2001 From: Matt Hicks Date: Sat, 19 Oct 2024 05:21:14 -0500 Subject: [PATCH] Fixes for update to Lucene 10 --- lucene/src/main/scala/lightdb/lucene/LuceneStore.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala b/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala index 139d8379..bfd80733 100644 --- a/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala +++ b/lucene/src/main/scala/lightdb/lucene/LuceneStore.scala @@ -224,7 +224,7 @@ class LuceneStore[Doc <: Document[Doc], Model <: DocumentModel[Doc]](directory: if (limit <= 0) throw new RuntimeException(s"Limit must be a positive value, but set to $limit") var facetResults: Map[FacetField[Doc], FacetResult] = Map.empty def search(total: Option[Int]): TopFieldDocs = { - val hitCountCollectorManager = new TotalHitCountCollectorManager + val hitCountCollectorManager = new TotalHitCountCollectorManager(indexSearcher.getSlices) val topFieldCollectorManager = new TopFieldCollectorManager(s, total.getOrElse(limit), Int.MaxValue) if (query.facets.nonEmpty) { facetsCollectorManager = Some(new FacetsCollectorManager(query.scoreDocs))