Hi,
very nice you tried!
I don't really undertand your code without formatting and line numbers, but it looks like you've complicated it a bit, you didn't try my patch?
a part from the huge documentation update, you have to add just three lines of code;
just add this:
Code:
MAX_FIELD_LENGTH( "max_field_length" ) {
public void applySetting(IndexWriter writer, int value) {
writer.setMaxFieldLength( value );
}
} ,
to the
IndexWriterSetting enum types.
Also I woudn't recommend to set the defaults to MAX_INTEGER; with the above patch you get the lucene defaults when not setting anything.