Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public final class LireCustomCodec extends FilterCodec {
- public LireCustomCodec() {
- super("LireCustomCodec", new Lucene42Codec());
- }
- @Override
- public StoredFieldsFormat storedFieldsFormat() {
- return new LireFeatureStoredFieldFormat();
- }
- }
- // --- and ---
- public final class LireFeatureStoredFieldFormat extends CompressingStoredFieldsFormat {
- /**
- * Sole constructor.
- */
- public LireFeatureStoredFieldFormat() {
- // TODO: try different chunk sizes, maybe 1-2KB?
- super("LireFeatureStoredFieldFormat", CompressionMode.FAST, 1 * 4096);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment