CavalliumDBEngine/src/main/java/it/cavallium/dbengine/lucene/searcher/LocalSearcher.java

26 lines
712 B
Java
Raw Normal View History

package it.cavallium.dbengine.lucene.searcher;
2021-09-18 18:34:21 +02:00
import io.net5.buffer.api.Send;
import it.cavallium.dbengine.database.disk.LLIndexSearcher;
import reactor.core.publisher.Mono;
public interface LocalSearcher {
/**
2021-09-18 18:34:21 +02:00
* @param indexSearcherMono Lucene index searcher
* @param queryParams the query parameters
* @param keyFieldName the name of the key field
* @param transformer the search query transformer
*/
2021-11-08 11:17:52 +01:00
Mono<LuceneSearchResult> collect(Mono<Send<LLIndexSearcher>> indexSearcherMono,
2021-07-06 01:30:37 +02:00
LocalQueryParams queryParams,
String keyFieldName,
LLSearchTransformer transformer);
/**
* Get the name of this searcher type
* @return searcher type name
*/
String getName();
}