Affects Version/s: 3.0.2
Fix Version/s: None
NearSpansOrdered's constructor will throw an IllegalArgumentException
if less than 2 clauses are given, while NearSpansOrdered won't.
On the other hand, SpanNearQuery accepts less than 2 clauses and has explicit optimization for 0-caluse and 1-clause queries in getSpans() method.
So, should SpanNearQuery accept less than 2 clauses or not?
|Field||Original Value||New Value|
|Priority||Major [ 3 ]||Minor [ 4 ]|
|Workflow||jira [ 12516840 ]||Default workflow, editable Closed status [ 12562680 ]|
|Workflow||Default workflow, editable Closed status [ 12562680 ]||jira [ 12583616 ]|