diff --git a/src/main/java/it/cavallium/dbengine/database/LLLuceneIndex.java b/src/main/java/it/cavallium/dbengine/database/LLLuceneIndex.java index b6c1b6b..4f0e281 100644 --- a/src/main/java/it/cavallium/dbengine/database/LLLuceneIndex.java +++ b/src/main/java/it/cavallium/dbengine/database/LLLuceneIndex.java @@ -26,9 +26,21 @@ public interface LLLuceneIndex extends Closeable, LLSnapshottable { 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 limit * 15 + */ Collection search(@Nullable LLSnapshot snapshot, String query, int limit, @Nullable LLSort sort, String keyFieldName) 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 limit * 15 + */ Collection moreLikeThis(@Nullable LLSnapshot snapshot, Map> mltDocumentFields, int limit,