LUCENE-8346: Remove final modifier on QueryBuilder#createSpanQuery to allow override

This commit is contained in:
Jim Ferenczi 2018-06-06 09:18:25 +02:00
parent 9ff3f5a136
commit 2b406a57c4
1 changed files with 2 additions and 2 deletions

View File

@ -346,9 +346,9 @@ public class QueryBuilder {
/** /**
* Creates a span query from the tokenstream. In the case of a single token, a simple <code>SpanTermQuery</code> is * Creates a span query from the tokenstream. In the case of a single token, a simple <code>SpanTermQuery</code> is
* returned. When multiple tokens, an ordered <code>SpanNearQuery</code> with slop of 0 is returned. * returned. When multiple tokens, an ordered <code>SpanNearQuery</code> with slop 0 is returned.
*/ */
protected final SpanQuery createSpanQuery(TokenStream in, String field) throws IOException { protected SpanQuery createSpanQuery(TokenStream in, String field) throws IOException {
TermToBytesRefAttribute termAtt = in.getAttribute(TermToBytesRefAttribute.class); TermToBytesRefAttribute termAtt = in.getAttribute(TermToBytesRefAttribute.class);
if (termAtt == null) { if (termAtt == null) {
return null; return null;