mirror of https://github.com/apache/lucene.git
LUCENE-8346: Remove final modifier on QueryBuilder#createSpanQuery to allow override
This commit is contained in:
parent
9ff3f5a136
commit
2b406a57c4
|
@ -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
|
||||
* 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);
|
||||
if (termAtt == null) {
|
||||
return null;
|
||||
|
|
Loading…
Reference in New Issue