@Configuration @EnableAsync public class IndexConfig extends Object
| 构造器和说明 |
|---|
IndexConfig() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
checkDir() |
org.apache.lucene.store.Directory |
directory() |
org.apache.lucene.index.IndexWriter |
indexWriter(org.apache.lucene.store.Directory directory) |
org.apache.lucene.search.SearcherManager |
searcherManager(org.apache.lucene.index.IndexWriter indexWriter) |
org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor |
taskExecutro() |
public static Logger log
@Bean
public org.apache.lucene.store.Directory directory()
throws IOException
IOExceptionpublic String checkDir()
@Bean(value="indexWriter")
public org.apache.lucene.index.IndexWriter indexWriter(org.apache.lucene.store.Directory directory)
throws IOException
IOException@Bean(value="searcherManager")
public org.apache.lucene.search.SearcherManager searcherManager(org.apache.lucene.index.IndexWriter indexWriter)
throws IOException
IOException@Bean(value="indexExecutor") public org.springframework.scheduling.concurrent.ThreadPoolTaskExecutor taskExecutro()
Copyright © 2022. All rights reserved.