From 07144c2a2d3f3dff34783197cf9303d3486b7b55 Mon Sep 17 00:00:00 2001 From: dankito Date: Mon, 4 May 2020 13:18:07 +0200 Subject: [PATCH] Adjusted to new LuceneUtils method signatures --- .../main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt | 3 ++- .../net/dankito/banking/search/LuceneRemitteeSearcher.kt | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt index 80e6409b..e88d53cd 100644 --- a/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt +++ b/fints4javaLib/src/main/kotlin/net/dankito/fints/banks/LuceneBankFinder.kt @@ -9,6 +9,7 @@ import net.dankito.utils.lucene.index.FieldBuilder import net.dankito.utils.lucene.mapper.PropertyDescription import net.dankito.utils.lucene.mapper.PropertyType import net.dankito.utils.lucene.search.FieldMapper +import net.dankito.utils.lucene.search.MappedSearchConfig import net.dankito.utils.lucene.search.QueryBuilder import net.dankito.utils.lucene.search.Searcher import org.apache.lucene.document.Document @@ -119,7 +120,7 @@ open class LuceneBankFinder(indexFolder: File) : BankFinderBase(), IBankFinder { protected open fun getBanksFromQuery(query: Query): List { // there are more than 16.000 banks in bank list -> 10.000 is too few - return searcher.searchAndMapLazily(query, BankInfo::class.java, bankInfoProperties, 100_000) + return searcher.searchAndMapLazily(MappedSearchConfig(query, BankInfo::class.java, bankInfoProperties, 100_000)) } diff --git a/persistence/LuceneBankingPersistence/src/main/kotlin/net/dankito/banking/search/LuceneRemitteeSearcher.kt b/persistence/LuceneBankingPersistence/src/main/kotlin/net/dankito/banking/search/LuceneRemitteeSearcher.kt index b5677d5f..9c960bf2 100644 --- a/persistence/LuceneBankingPersistence/src/main/kotlin/net/dankito/banking/search/LuceneRemitteeSearcher.kt +++ b/persistence/LuceneBankingPersistence/src/main/kotlin/net/dankito/banking/search/LuceneRemitteeSearcher.kt @@ -6,6 +6,7 @@ import net.dankito.banking.LuceneConfig.Companion.OtherPartyBankCodeFieldName import net.dankito.banking.LuceneConfig.Companion.OtherPartyNameFieldName import net.dankito.utils.lucene.mapper.PropertyDescription import net.dankito.utils.lucene.mapper.PropertyType +import net.dankito.utils.lucene.search.MappedSearchConfig import net.dankito.utils.lucene.search.QueryBuilder import net.dankito.utils.lucene.search.Searcher import java.io.File @@ -36,7 +37,7 @@ open class LuceneRemitteeSearcher(indexFolder: File) : IRemitteeSearcher { ) } - return searcher.searchAndMap(luceneQuery, Remittee::class.java, properties).toSet().toList() + return searcher.searchAndMap(MappedSearchConfig(luceneQuery, Remittee::class.java, properties)).toSet().toList() } } \ No newline at end of file