public class IndexSyncLocal extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static Map<Path,List<org.apache.lucene.document.Document>> |
indexDocMap |
static Map<String,org.apache.lucene.index.IndexWriter> |
writerMap |
| 构造器和说明 |
|---|
IndexSyncLocal(Path localDiskPath,
long syncDelayTime,
int maxTaskSize) |
| 限定符和类型 | 方法和说明 |
|---|---|
static String |
formartPath(String path)
解析path 获取文件夹路径
|
org.apache.lucene.analysis.Analyzer |
getAnalyzer(Class clazz) |
static String |
getFolderPath(String path)
解析path 获取文件夹路径
|
static void |
main(String[] args) |
com.ds.index.config.JLucene |
pushIndex(com.ds.index.config.JLucene luceneBean,
org.apache.lucene.document.Document document) |
void |
removeIndex(com.ds.index.config.JLucene luceneBean) |
void |
removeIndex(org.apache.lucene.search.Query query,
com.ds.index.config.JLucene luceneBean) |
public IndexSyncLocal(Path localDiskPath, long syncDelayTime, int maxTaskSize)
public org.apache.lucene.analysis.Analyzer getAnalyzer(Class clazz)
public void removeIndex(org.apache.lucene.search.Query query,
com.ds.index.config.JLucene luceneBean)
throws IOException
IOExceptionpublic void removeIndex(com.ds.index.config.JLucene luceneBean)
throws IOException
IOExceptionpublic com.ds.index.config.JLucene pushIndex(com.ds.index.config.JLucene luceneBean,
org.apache.lucene.document.Document document)
throws IOException
IOExceptionpublic static void main(String[] args) throws IOException
IOExceptionCopyright © 2023 onecode. All rights reserved.