Update LLLuceneIndex.java

This commit is contained in:
Andrea Cavalli 2020-12-08 10:52:15 +01:00
parent 76657a260d
commit 68dc7306c6

View File

@ -26,9 +26,21 @@ public interface LLLuceneIndex extends Closeable, LLSnapshottable {
void deleteAll() throws IOException; void deleteAll() throws IOException;
/**
*
* @param limit the limit is valid for each lucene instance.
* If you have 15 instances, the number of elements returned
* can be at most <code>limit * 15</code>
*/
Collection<LLTopKeys> search(@Nullable LLSnapshot snapshot, String query, int limit, @Nullable LLSort sort, String keyFieldName) Collection<LLTopKeys> search(@Nullable LLSnapshot snapshot, String query, int limit, @Nullable LLSort sort, String keyFieldName)
throws IOException; throws IOException;
/**
*
* @param limit the limit is valid for each lucene instance.
* If you have 15 instances, the number of elements returned
* can be at most <code>limit * 15</code>
*/
Collection<LLTopKeys> moreLikeThis(@Nullable LLSnapshot snapshot, Collection<LLTopKeys> moreLikeThis(@Nullable LLSnapshot snapshot,
Map<String, Set<String>> mltDocumentFields, Map<String, Set<String>> mltDocumentFields,
int limit, int limit,