additionalProperties.setProperty( Index.PropertyKeys.OCCURRENCES, occurrencesInRAM ); properties.addAll(additionalProperties); Scan.saveProperties( IOFactory.FILESYSTEM_FACTORY, properties, mg4jBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
additionalProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize ); additionalProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences ); properties.addAll( additionalProperties ); logger.debug( "Post-merge properties: " + new ConfigurationMap( properties ) ); properties.save( outputBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, 1 ); clusterProperties.setProperty( IndexCluster.PropertyKeys.BLOOM, false );
additionalProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize ); additionalProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences ); properties.addAll( additionalProperties ); logger.debug( "Post-merge properties: " + new ConfigurationMap( properties ) ); properties.save( outputBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, 1 ); clusterProperties.setProperty( IndexCluster.PropertyKeys.BLOOM, false );
output.close(); Properties localProperties = new Properties(); localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); localProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences[ i ] ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM ) ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT ) ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION ); LOGGER.debug( "Post-partitioning properties for index " + localBasename[ i ] + ": " + new ConfigurationMap( localProperties ) );
output.close(); Properties localProperties = new Properties(); localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); localProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences[ i ] ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM ) ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT ) ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION ); LOGGER.debug( "Post-partitioning properties for index " + localBasename[ i ] + ": " + new ConfigurationMap( localProperties ) );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, 1 ); clusterProperties.setProperty( IndexCluster.PropertyKeys.BLOOM, false );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, 1 ); clusterProperties.setProperty( IndexCluster.PropertyKeys.BLOOM, false );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, -1 ); clusterProperties.setProperty( DocumentalCluster.PropertyKeys.BLOOM, false );
additionalProperties.setProperty( Index.PropertyKeys.MAXCOUNT, maxCount ); additionalProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences ); properties.addAll( additionalProperties ); LOGGER.debug( "Post-merge properties: " + new ConfigurationMap( properties ) ); Scan.saveProperties( ioFactory, properties, outputBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
additionalProperties.setProperty( Index.PropertyKeys.MAXCOUNT, maxCount ); additionalProperties.setProperty( Index.PropertyKeys.OCCURRENCES, numberOfOccurrences ); properties.addAll( additionalProperties ); LOGGER.debug( "Post-merge properties: " + new ConfigurationMap( properties ) ); Scan.saveProperties( ioFactory, properties, outputBasename + DiskBasedIndex.PROPERTIES_EXTENSION );
output.close(); Properties localProperties = new Properties(); localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); localProperties.setProperty( Index.PropertyKeys.OCCURRENCES, localOccurrences[ i ] ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPQUANTUM ) ); localProperties.setProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT, properties.getProperty( BitStreamIndex.PropertyKeys.SKIPHEIGHT ) ); if ( strategyProperties != null && strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION ); LOGGER.debug( "Post-partitioning properties for index " + localBasename[ i ] + ": " + new ConfigurationMap( localProperties ) );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, -1 ); clusterProperties.setProperty( DocumentalCluster.PropertyKeys.BLOOM, false );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, -1 ); clusterProperties.setProperty( DocumentalCluster.PropertyKeys.BLOOM, false );
clusterProperties.addAll( properties ); clusterProperties.setProperty( Index.PropertyKeys.TERMS, -1 ); clusterProperties.setProperty( DocumentalCluster.PropertyKeys.BLOOM, false );
localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.MAXCOUNT, String.valueOf( maxDocPos[ i ] ) ); localProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize[ i ] ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); if ( havePayloads ) localProperties.setProperty( Index.PropertyKeys.PAYLOADCLASS, payload.getClass().getName() ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION );
localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.MAXCOUNT, String.valueOf( maxDocPos[ i ] ) ); localProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize[ i ] ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); if ( havePayloads ) localProperties.setProperty( Index.PropertyKeys.PAYLOADCLASS, payload.getClass().getName() ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION );
localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.MAXCOUNT, String.valueOf( maxDocPos[ i ] ) ); localProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize[ i ] ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); if ( havePayloads ) localProperties.setProperty( Index.PropertyKeys.PAYLOADCLASS, payload.getClass().getName() ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION );
localProperties.addAll( globalProperties ); localProperties.setProperty( Index.PropertyKeys.MAXCOUNT, String.valueOf( maxDocPos[ i ] ) ); localProperties.setProperty( Index.PropertyKeys.MAXDOCSIZE, maxDocSize[ i ] ); localProperties.setProperty( Index.PropertyKeys.TERMS, numTerms[ i ] ); if ( havePayloads ) localProperties.setProperty( Index.PropertyKeys.PAYLOADCLASS, payload.getClass().getName() ); if ( strategyProperties[ i ] != null ) localProperties.addAll( strategyProperties[ i ] ); localProperties.save( localBasename[ i ] + DiskBasedIndex.PROPERTIES_EXTENSION );