Package org.hibernate.search.backend.spi

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



  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

   * </p>
   *
   * @param properties The properties extracted from the configuration.
   */
  public static LuceneIndexingParameters extractIndexingPerformanceOptions(Properties properties) {
    return new LuceneIndexingParameters( properties );
  }
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.