Package org.hibernate.search.backend.spi

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


    assertValueIsDefault( Document.class, RAM_BUFFER_SIZE );
  }

  @Test
  public void testSerializability() throws IOException, ClassNotFoundException {
    LuceneIndexingParameters param = new LuceneIndexingParameters( new Properties() );
    LuceneIndexingParameters paramCopy = (LuceneIndexingParameters)
      SerializationTestHelper.duplicateBySerialization( param );
    assertEquals( param.getIndexParameters(), paramCopy.getIndexParameters() );
  }
View Full Code Here


  }

  private Integer getParameter(int shard, IndexWriterSetting setting, Class testEntity) {
    EntityIndexBinding mappingForEntity = getSearchFactoryImpl().getIndexBinding( testEntity );
    DirectoryBasedIndexManager indexManager = (DirectoryBasedIndexManager) mappingForEntity.getIndexManagers()[shard];
    LuceneIndexingParameters luceneIndexingParameters = indexManager.getIndexingParameters();
    return luceneIndexingParameters.getIndexParameters().getCurrentValueFor( setting );
  }
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

   * </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

   * </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

   * @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

TOP

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

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.