From 211c0f664839c9579c59c7c023e52ed4ddd5af18 Mon Sep 17 00:00:00 2001 From: qaate47 Date: Mon, 28 Oct 2024 16:09:15 +0100 Subject: [PATCH] GH-5149 Add search:numDocs property and maxQueryDocuments param in LuceneSail query --- .../main/java/org/eclipse/rdf4j/sail/lucene/QuerySpec.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/core/sail/lucene-api/src/main/java/org/eclipse/rdf4j/sail/lucene/QuerySpec.java b/core/sail/lucene-api/src/main/java/org/eclipse/rdf4j/sail/lucene/QuerySpec.java index 7359e17220..0e647c592f 100644 --- a/core/sail/lucene-api/src/main/java/org/eclipse/rdf4j/sail/lucene/QuerySpec.java +++ b/core/sail/lucene-api/src/main/java/org/eclipse/rdf4j/sail/lucene/QuerySpec.java @@ -79,6 +79,12 @@ private static void append(Var var, StringBuilder buffer) { private final Integer numDocs; + public QuerySpec(StatementPattern matchesPattern, Collection queryPatterns, + StatementPattern scorePattern, StatementPattern typePattern, + StatementPattern idPattern, Resource subject) { + this(matchesPattern, queryPatterns, scorePattern, typePattern, idPattern, null, subject); + } + public QuerySpec(StatementPattern matchesPattern, Collection queryPatterns, StatementPattern scorePattern, StatementPattern typePattern, StatementPattern idPattern, StatementPattern numDocsPattern, Resource subject) {