public interface FullText
Modifier and Type | Field and Description |
---|---|
static String |
FULLTEXT_BEAN_NAME
application.xml的全局配置参数名:
参数值:全文检索接口的bean名称(单例,用于静态配置场景) |
static String |
FULLTEXT_DYNAMIC_BEAN
application.xml的全局配置参数名:
参数值:全文检索接口的bean名称(注意要允许多例,用于动态配置多实例场景) |
Modifier and Type | Method and Description |
---|---|
<T> void |
createIndex(String type,
T data,
Object... arguments)
创建索引
|
void |
deleteAllIndexes()
删除全部索引
|
<T> void |
deleteIndex(String type,
T data,
Object... arguments)
删除索引
|
String |
escape(String queryRule)
转义带特殊字符的查询条件
|
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)
查询带分页的索引
|
static final String FULLTEXT_BEAN_NAME
static final String FULLTEXT_DYNAMIC_BEAN
<T> void createIndex(String type, T data, Object... arguments)
type
- 索引项:相当于分类,便于查询data
- arguments
- <T> void deleteIndex(String type, T data, Object... arguments)
type
- 索引项:相当于分类,便于查询data
- arguments
- void deleteAllIndexes()
Pager<Document> search(String searchCondition, int start, int limit)
searchCondition
- start
- limit
- Pager<Document> search(String searchCondition, DocumentFilter filter, int start, int limit)
searchCondition
- filter
- start
- limit
- Pager<Document> search(SearchRule searchRule, int start, int limit)
searchRule
- start
- limit
- Pager<Document> search(SearchRule searchRule, DocumentFilter filter, int start, int limit)
searchRule
- filter
- start
- limit
- Copyright © 2006–2018 TinyGroup. All rights reserved.