mirror of https://github.com/apache/lucene.git
LUCENE-3684: use UOE not IAE
git-svn-id: https://svn.apache.org/repos/asf/lucene/dev/trunk@1232110 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
dee0f7bd55
commit
297cc4a275
|
@ -89,7 +89,7 @@ class PreFlexRWFieldsWriter extends FieldsConsumer {
|
|||
public TermsConsumer addField(FieldInfo field) throws IOException {
|
||||
assert field.number != -1;
|
||||
if (field.indexOptions.compareTo(IndexOptions.DOCS_AND_FREQS_AND_POSITIONS_AND_OFFSETS) >= 0) {
|
||||
throw new IllegalArgumentException("this codec cannot index offsets");
|
||||
throw new UnsupportedOperationException("this codec cannot index offsets");
|
||||
}
|
||||
//System.out.println("w field=" + field.name + " storePayload=" + field.storePayloads + " number=" + field.number);
|
||||
return new PreFlexTermsWriter(field);
|
||||
|
|
Loading…
Reference in New Issue