2021-07-06 00:30:14 +02:00
|
|
|
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;
|
2021-07-06 00:30:14 +02:00
|
|
|
import reactor.core.publisher.Mono;
|
|
|
|
|
2021-10-13 12:25:32 +02:00
|
|
|
public interface LocalSearcher {
|
2021-07-06 00:30:14 +02:00
|
|
|
|
|
|
|
/**
|
2021-09-18 18:34:21 +02:00
|
|
|
* @param indexSearcherMono Lucene index searcher
|
2021-09-20 11:35:01 +02:00
|
|
|
* @param queryParams the query parameters
|
|
|
|
* @param keyFieldName the name of the key field
|
|
|
|
* @param transformer the search query transformer
|
2021-07-06 00:30:14 +02:00
|
|
|
*/
|
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,
|
2021-09-20 11:35:01 +02:00
|
|
|
String keyFieldName,
|
|
|
|
LLSearchTransformer transformer);
|
2021-10-13 00:23:56 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Get the name of this searcher type
|
|
|
|
* @return searcher type name
|
|
|
|
*/
|
|
|
|
String getName();
|
2021-07-06 00:30:14 +02:00
|
|
|
}
|