public abstract class BaseLuceneBuilder extends Object
Modifier and Type | Field and Description |
---|---|
protected BeanContainer<?> |
beanContainer |
protected IndexableFieldBuilder |
indexableFieldBuilder |
Constructor and Description |
---|
BaseLuceneBuilder() |
Modifier and Type | Method and Description |
---|---|
org.apache.lucene.analysis.Analyzer |
buildAnalyzer() |
abstract LuceneConfig |
buildConfig()
获得lucene配置
|
protected String[] |
buildDefaultQueryFields() |
org.apache.lucene.store.Directory |
buildDirectory()
构建org.apache.lucene.store.Directory对象
|
org.apache.lucene.document.Document |
buildDocument(Document doc)
构建org.apache.lucene.document.Document对象
|
org.apache.lucene.search.highlight.Highlighter |
buildHighlighter(org.apache.lucene.search.Query query)
构建org.apache.lucene.search.highlight.Highlighter对象
|
org.apache.lucene.index.IndexWriterConfig |
buildIndexWriterConfig()
构建org.apache.lucene.index.IndexWriterConfig对象
|
org.apache.lucene.search.Query |
buildQuery(SearchRule searchRule) |
org.apache.lucene.search.Query |
buildQuery(String searchCondition) |
abstract String[] |
buildQueryFields()
构建搜索字段域
|
Set<String> |
buildQuerySet() |
org.apache.lucene.util.Version |
buildVersion() |
String |
getPerfix() |
String |
getSuffix() |
protected IndexableFieldBuilder indexableFieldBuilder
protected BeanContainer<?> beanContainer
public abstract LuceneConfig buildConfig()
public String getPerfix()
public String getSuffix()
public org.apache.lucene.document.Document buildDocument(Document doc)
doc
- public org.apache.lucene.store.Directory buildDirectory()
public org.apache.lucene.index.IndexWriterConfig buildIndexWriterConfig()
protected String[] buildDefaultQueryFields()
public abstract String[] buildQueryFields()
public org.apache.lucene.search.Query buildQuery(SearchRule searchRule) throws Exception
Exception
public org.apache.lucene.search.Query buildQuery(String searchCondition) throws Exception
Exception
public org.apache.lucene.search.highlight.Highlighter buildHighlighter(org.apache.lucene.search.Query query)
public org.apache.lucene.util.Version buildVersion()
public org.apache.lucene.analysis.Analyzer buildAnalyzer()
Copyright © 2006–2018 TinyGroup. All rights reserved.