RandomIndexWriter writer = null;
}
private static void init(final Index index)
throws IOException {
final RandomSirenCodec codec = new RandomSirenCodec(random(), PostingsFormatType.RANDOM);
final TupleAnalyzer tupleAnalyzer = (TupleAnalyzer) SirenTestCase.newTupleAnalyzer();
final AnyURIAnalyzer uriAnalyzer = new AnyURIAnalyzer(TEST_VERSION_CURRENT);
tupleAnalyzer.registerDatatype(XSDDatatype.XSD_ANY_URI.toCharArray(), uriAnalyzer);
// Set the SIREn fields
codec.addSirenFields("field8", "field6", "field4", "field2", "field" + Integer.MAX_VALUE,
"ascfield8", "ascfield6", "ascfield4", "ascfield2",
"double8", "double6", "double4", "double2");
// Set the datatype analyzers
tupleAnalyzer.registerDatatype((XSDDatatype.XSD_LONG+"8").toCharArray(), new LongNumericAnalyzer(8));
tupleAnalyzer.registerDatatype((XSDDatatype.XSD_LONG+"6").toCharArray(), new LongNumericAnalyzer(6));