Package org.hibernate.search.backend.spi

Examples of org.hibernate.search.backend.spi.LuceneIndexingParameters


   * @param context the build context.
   * @param directoryProperties The properties extracted from the configuration.
   * @param provider The directory provider for which to configure the indexing parameters.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps) {
    LuceneIndexingParameters indexingParams = new LuceneIndexingParameters( indexProps );
    return indexingParams;
  }
View Full Code Here



  IndexWriterHolder(ErrorHandler errorHandler, DirectoryBasedIndexManager indexManager) {
    this.errorHandler = errorHandler;
    this.indexName = indexManager.getIndexName();
    LuceneIndexingParameters luceneParameters = indexManager.getIndexingParameters();
    this.indexParameters = luceneParameters.getIndexParameters();
    this.directoryProvider = indexManager.getDirectoryProvider();
    luceneParameters.applyToWriter( writerConfig );
    Similarity similarity = indexManager.getSimilarity();
    if ( similarity != null ) {
      writerConfig.setSimilarity( similarity );
    }
    writerConfig.setOpenMode( OpenMode.APPEND ); //More efficient to open
View Full Code Here

   * @param context the build context.
   * @param directoryProperties The properties extracted from the configuration.
   * @param provider The directory provider for which to configure the indexing parameters.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps) {
    LuceneIndexingParameters indexingParams = new LuceneIndexingParameters( indexProps );
    return indexingParams;
  }
View Full Code Here

   * @param context the build context.
   * @param directoryProperties The properties extracted from the configuration.
   * @param provider The directory provider for which to configure the indexing parameters.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps) {
    LuceneIndexingParameters indexingParams = new LuceneIndexingParameters( indexProps );
    return indexingParams;
  }
View Full Code Here

      //And finally check we're running it in the same CacheManager:
      Assert.assertTrue(extended.getDataCache().getCacheManager() == embeddedCacheManager);
   }

   private void verifyIndexWriterOptions(NRTIndexManager nrtIM, Integer expectedRAMBuffer, Integer expectedMaxMergeSize, Integer expectedMergeFactor) {
      LuceneIndexingParameters indexingParameters = nrtIM.getIndexingParameters();
      ParameterSet indexParameters = indexingParameters.getIndexParameters();
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.RAM_BUFFER_SIZE), expectedRAMBuffer);
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_MAX_SIZE), expectedMaxMergeSize);
      Assert.assertEquals(indexParameters.getCurrentValueFor(IndexWriterSetting.MERGE_FACTOR), expectedMergeFactor);
   }
View Full Code Here

   * </p>
   *
   * @param properties The properties extracted from the configuration.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties properties) {
    return new LuceneIndexingParameters( properties );
  }
View Full Code Here

   * @param context the build context.
   * @param directoryProperties The properties extracted from the configuration.
   * @param provider The directory provider for which to configure the indexing parameters.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties indexProps) {
    LuceneIndexingParameters indexingParams = new LuceneIndexingParameters( indexProps );
    return indexingParams;
  }
View Full Code Here


  IndexWriterHolder(ErrorHandler errorHandler, DirectoryBasedIndexManager indexManager) {
    this.errorHandler = errorHandler;
    this.indexName = indexManager.getIndexName();
    LuceneIndexingParameters luceneParameters = indexManager.getIndexingParameters();
    this.indexParameters = luceneParameters.getIndexParameters();
    this.directoryProvider = indexManager.getDirectoryProvider();
    luceneParameters.applyToWriter( writerConfig );
    Similarity similarity = indexManager.getSimilarity();
    if ( similarity != null ) {
      writerConfig.setSimilarity( similarity );
    }
    writerConfig.setOpenMode( OpenMode.APPEND ); //More efficient to open
View Full Code Here


  IndexWriterHolder(ErrorHandler errorHandler, DirectoryBasedIndexManager indexManager) {
    this.errorHandler = errorHandler;
    this.indexName = indexManager.getIndexName();
    LuceneIndexingParameters luceneParameters = indexManager.getIndexingParameters();
    this.indexParameters = luceneParameters.getIndexParameters();
    this.directoryProvider = indexManager.getDirectoryProvider();
    luceneParameters.applyToWriter( writerConfig );
    Similarity similarity = indexManager.getSimilarity();
    if ( similarity != null ) {
      writerConfig.setSimilarity( similarity );
    }
    writerConfig.setOpenMode( OpenMode.APPEND ); //More efficient to open
View Full Code Here


  IndexWriterHolder(ErrorHandler errorHandler, DirectoryBasedIndexManager indexManager) {
    this.errorHandler = errorHandler;
    this.indexName = indexManager.getIndexName();
    LuceneIndexingParameters luceneParameters = indexManager.getIndexingParameters();
    this.indexParameters = luceneParameters.getIndexParameters();
    this.directoryProvider = indexManager.getDirectoryProvider();
    luceneParameters.applyToWriter( writerConfig );
    Similarity similarity = indexManager.getSimilarity();
    if ( similarity != null ) {
      writerConfig.setSimilarity( similarity );
    }
    writerConfig.setOpenMode( OpenMode.APPEND ); //More efficient to open
View Full Code Here

TOP

Related Classes of org.hibernate.search.backend.spi.LuceneIndexingParameters

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.