Skip to content

Commit

Permalink
Fixes for update to Lucene 10
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfrog26 committed Oct 19, 2024
1 parent ce5679b commit 06cab8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lucene/src/main/scala/lightdb/lucene/LuceneStore.scala
Original file line number Diff line number Diff line change
Expand Up @@ -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))
Expand Down

0 comments on commit 06cab8f

Please sign in to comment.