I stumbled across the following Lucene exceptions that each have the same typo
– they do not output a closing quote and parenthesis:
In org.apache.lucene.index.TermVectorsConsumerPerField.start (branch_4x):
if (field.fieldType().storeTermVectorOffsets()) {
throw new IllegalArgumentException("cannot index term vector offsets when
term vectors are not indexed (field=\"" + field.name());
}
if (field.fieldType().storeTermVectorPositions()) {
throw new IllegalArgumentException("cannot index term vector positions
when term vectors are not indexed (field=\"" + field.name());
}
if (field.fieldType().storeTermVectorPayloads()) {
throw new IllegalArgumentException("cannot index term vector payloads
when term vectors are not indexed (field=\"" + field.name());
}
}
} else {
if (field.fieldType().storeTermVectors()) {
throw new IllegalArgumentException("cannot index term vectors when field is
not indexed (field=\"" + field.name());
}
if (field.fieldType().storeTermVectorOffsets()) {
throw new IllegalArgumentException("cannot index term vector offsets when
field is not indexed (field=\"" + field.name());
}
if (field.fieldType().storeTermVectorPositions()) {
throw new IllegalArgumentException("cannot index term vector positions when
field is not indexed (field=\"" + field.name());
}
if (field.fieldType().storeTermVectorPayloads()) {
throw new IllegalArgumentException("cannot index term vector payloads when
field is not indexed (field=\"" + field.name());
}
Change:
(field=\"" + field.name()
to
(field=\"" + field.name() + "\")"
The specific exception I got from Solr:
24671 [qtp22111754-10] ERROR org.apache.solr.servlet.SolrDispatchFilter –
null:java.lang.IllegalArgumentException: cannot index term vector positions
when term vectors are not indexed (field="term_pos
at
org.apache.lucene.index.TermVectorsConsumerPerField.start(TermVectorsConsumerPerField.java:86)
-- Jack Krupansky