/** * Constructs an instance of a BasicIndexer, using the given path name * for storing the data structures. * @param path String the path where the data structures will be created. This is assumed to be * absolute. * @param prefix String the filename component of the data structures */ public BasicIndexer(String path, String prefix) { super(path, prefix); //delay the execution of init() if we are a parent class if (this.getClass() == BasicIndexer.class) init(); compressionDirectConfig = CompressionFactory.getCompressionConfiguration("direct", FieldScore.FIELD_NAMES, 0, 0); compressionInvertedConfig = CompressionFactory.getCompressionConfiguration("inverted", FieldScore.FIELD_NAMES, 0, 0); }
/** Constructs an instance of this class, where the created data structures * are stored in the given path, with the given prefix on the filenames. * @param pathname String the path in which the created data structures will be saved. This is assumed to be * absolute. * @param prefix String the prefix on the filenames of the created data structures, usually "data" */ public BlockIndexer(String pathname, String prefix) { super(pathname, prefix); if (this.getClass() == BlockIndexer.class) init(); int blockSize = BLOCK_SIZE; if (Boolean.parseBoolean(ApplicationSetup.getProperty("block.delimiters.enabled", "false"))) blockSize = 2; compressionDirectConfig = CompressionFactory.getCompressionConfiguration("direct", FieldScore.FIELD_NAMES, blockSize, MAX_BLOCKS); compressionInvertedConfig = CompressionFactory.getCompressionConfiguration("inverted", FieldScore.FIELD_NAMES, blockSize, MAX_BLOCKS); }
/** * constructor * @param _srcIndex1 * @param _srcIndex2 * @param _destIndex */ public BlockStructureMerger(IndexOnDisk _srcIndex1, IndexOnDisk _srcIndex2, IndexOnDisk _destIndex) { super(_srcIndex1, _srcIndex2, _destIndex); String[] fieldNames = ArrayUtils.parseCommaDelimitedString(srcIndex1.getIndexProperty("index.inverted.fields.names", "")); int blocks = srcIndex1.getIntIndexProperty("index.inverted.blocks", 1); int maxblocks = srcIndex1.getIntIndexProperty("index.inverted.blocks.max", ApplicationSetup.MAX_BLOCKS); compressionDirectConfig = CompressionFactory.getCompressionConfiguration("direct", fieldNames, blocks, maxblocks); compressionInvertedConfig = CompressionFactory.getCompressionConfiguration("inverted", fieldNames, blocks, maxblocks); }
/** * constructor * @param _srcIndex1 * @param _srcIndex2 * @param _destIndex */ public StructureMerger(IndexOnDisk _srcIndex1, IndexOnDisk _srcIndex2, IndexOnDisk _destIndex) { this.srcIndex1 = _srcIndex1; this.srcIndex2 = _srcIndex2; this.destIndex = _destIndex; numberOfDocuments = 0; numberOfPointers = 0; numberOfTerms = 0; final int srcFieldCount1 = srcIndex1.getIntIndexProperty("index.inverted.fields.count", 0); final int srcFieldCount2 = srcIndex2.getIntIndexProperty("index.inverted.fields.count", 0); if (srcFieldCount1 != srcFieldCount2) { throw new Error("FieldCounts in source indices must match"); } String[] fieldNames = ArrayUtils.parseCommaDelimitedString(srcIndex1.getIndexProperty("index.inverted.fields.names", "")); assert srcFieldCount1 == fieldNames.length; fieldCount = srcFieldCount1; compressionDirectConfig = CompressionFactory.getCompressionConfiguration("direct", fieldNames, 0,0); compressionInvertedConfig = CompressionFactory.getCompressionConfiguration("inverted", fieldNames, 0,0); }
+ " prefix: " + prefix); compressionConfig = CompressionFactory.getCompressionConfiguration("inverted", new String[0], 0,0);
compressionConfig = CompressionFactory.getCompressionConfiguration("inverted", fieldtags, 0,0);
CompressionConfiguration compressionConfig = CompressionFactory.getCompressionConfiguration("tmp-inverted", ArrayUtils.parseCommaDelimitedString(index.getIndexProperty("index.inverted.fields.names", "")), index.getIntIndexProperty("index.inverted.blocks", 0),
CompressionConfiguration compressionConfig = CompressionFactory.getCompressionConfiguration("tmp-inverted", ArrayUtils.parseCommaDelimitedString(index.getIndexProperty("index.inverted.fields.names", "")), index.getIntIndexProperty("index.inverted.blocks", 0),