public abstract class AbstractFullText extends Object implements FullText
FULLTEXT_BEAN_NAME, FULLTEXT_DYNAMIC_BEAN
Constructor and Description |
---|
AbstractFullText() |
Modifier and Type | Method and Description |
---|---|
protected <T> void |
checkData(T data)
检查索引数据
|
protected void |
checkType(String type)
检查类型
|
<T> void |
createIndex(String type,
T data,
Object... arguments)
创建索引
|
void |
deleteAllIndexes()
删除全部索引
|
<T> void |
deleteIndex(String type,
T data,
Object... arguments)
删除索引
|
String |
escape(String queryRule)
转义带特殊字符的查询条件
|
List<DocumentListCreator> |
getDocumentListCreators() |
IndexOperator |
getIndexOperator() |
protected <T> boolean |
matchData(DocumentListCreator creator,
T data) |
Pager<Document> |
search(SearchRule searchRule,
DocumentFilter filter,
int start,
int limit)
查询并过滤自定义条件的带分页的索引
|
Pager<Document> |
search(SearchRule searchRule,
int start,
int limit)
查询自定义条件的带分页的索引
|
Pager<Document> |
search(String searchCondition)
查询索引
|
Pager<Document> |
search(String searchCondition,
DocumentFilter filter,
int start,
int limit)
查询并过滤带分页的索引
|
Pager<Document> |
search(String searchCondition,
int start,
int limit)
查询带分页的索引
|
void |
setDocumentListCreators(List<DocumentListCreator> documentListCreators) |
void |
setIndexOperator(IndexOperator indexOperator) |
public List<DocumentListCreator> getDocumentListCreators()
public void setDocumentListCreators(List<DocumentListCreator> documentListCreators)
public IndexOperator getIndexOperator()
public void setIndexOperator(IndexOperator indexOperator)
protected void checkType(String type)
type
- protected <T> void checkData(T data)
data
- protected <T> boolean matchData(DocumentListCreator creator, T data)
public <T> void createIndex(String type, T data, Object... arguments)
FullText
createIndex
in interface FullText
type
- 索引项:相当于分类,便于查询public <T> void deleteIndex(String type, T data, Object... arguments)
FullText
deleteIndex
in interface FullText
type
- 索引项:相当于分类,便于查询public void deleteAllIndexes()
FullText
deleteAllIndexes
in interface FullText
public Pager<Document> search(String searchCondition)
FullText
public Pager<Document> search(String searchCondition, int start, int limit)
FullText
public Pager<Document> search(String searchCondition, DocumentFilter filter, int start, int limit)
FullText
public Pager<Document> search(SearchRule searchRule, int start, int limit)
FullText
public Pager<Document> search(SearchRule searchRule, DocumentFilter filter, int start, int limit)
FullText
Copyright © 2006–2018 TinyGroup. All rights reserved.