From 2e941fcfed6cad3d9c8667ff5324cd04858ba547 Mon Sep 17 00:00:00 2001 From: Mayya Sharipova Date: Thu, 14 Apr 2022 10:50:22 -0400 Subject: [PATCH] Make constructor for QueryOffsetRange public (#800) QueryOffsetRange is a public class and is used in other classes (e.g. FieldValueHighlighters needs it). Make it constructor public as well to be used in other packages --- .../apache/lucene/search/matchhighlight/MatchHighlighter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/MatchHighlighter.java b/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/MatchHighlighter.java index 378c557707c..72887ce0d1e 100644 --- a/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/MatchHighlighter.java +++ b/lucene/highlighter/src/java/org/apache/lucene/search/matchhighlight/MatchHighlighter.java @@ -156,7 +156,7 @@ public class MatchHighlighter { public static class QueryOffsetRange extends OffsetRange { public final Query query; - QueryOffsetRange(Query query, int from, int to) { + public QueryOffsetRange(Query query, int from, int to) { super(from, to); this.query = query; }