File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
server/src/main/java/org/elasticsearch/index/query Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change 14
14
import org .apache .lucene .search .Query ;
15
15
import org .apache .lucene .util .automaton .Automaton ;
16
16
import org .elasticsearch .TransportVersion ;
17
- import org .elasticsearch .TransportVersions ;
18
17
import org .elasticsearch .common .Strings ;
19
18
import org .elasticsearch .common .io .stream .StreamOutput ;
20
19
import org .elasticsearch .xcontent .XContentBuilder ;
@@ -77,9 +76,8 @@ protected boolean doEquals(AutomatonQueryBuilder other) {
77
76
return Objects .equals (fieldName , other .fieldName ) && Objects .equals (automaton , other .automaton );
78
77
}
79
78
80
- // TO DO, what should be the minimal supported version?
81
79
@ Override
82
80
public TransportVersion getMinimalSupportedVersion () {
83
- return TransportVersions . ZERO ;
81
+ throw new UnsupportedOperationException ( "AutomatonQueryBuilder does not support getMinimalSupportedVersion" ) ;
84
82
}
85
83
}
You can’t perform that action at this time.
0 commit comments