| 程序包 | 说明 |
|---|---|
| cn.weforward.data.search | |
| cn.weforward.data.search.ms | |
| cn.weforward.data.search.support | |
| cn.weforward.data.search.util | |
| cn.weforward.data.search.vo |
| 限定符和类型 | 方法和说明 |
|---|---|
List<IndexKeyword> |
SearchableExt.getIndexKeywords()
取索引的关键词表
|
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
Searcher.search(List<? extends IndexKeyword> keywords,
SearchOption options)
搜索符合指定关键词表的条目
|
IndexResults |
Searcher.searchAll(List<? extends IndexRange> andRanges,
List<? extends IndexRange> orRanges,
List<? extends IndexKeyword> andKeywords,
List<? extends IndexKeyword> orKeywords,
SearchOption options)
全索引功能
|
IndexResults |
Searcher.searchAll(List<? extends IndexRange> andRanges,
List<? extends IndexRange> orRanges,
List<? extends IndexKeyword> andKeywords,
List<? extends IndexKeyword> orKeywords,
SearchOption options)
全索引功能
|
IndexResults |
Searcher.searchRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options)
按多个区间词进行搜索,通常用于数值的区间查找,但数值转换为字串前需要补零对齐,,如“010=>100”,其它字串的区间如“abc =>
cde”
[begin,end)
|
IndexResults |
Searcher.searchRange(String begin,
String to,
List<? extends IndexKeyword> keywords,
SearchOption options)
按两个区间词进行搜索,通常用于数值的区间查找,但数值转换为字串前需要补零对齐,,如“010=>100”,其它字串的区间如“abc =>
cde”
[begin,end)
|
IndexResults |
Searcher.union(List<? extends IndexKeyword> keywords,
SearchOption options)
取指定关键词表的并集,与search的最大区别是前者的结果是“与”,后者的结果是“或”
|
IndexResults |
Searcher.unionRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options)
按多个区间词进行搜索,通常用于数值的区间查找,但数值转换为字串前需要补零对齐,,如“010=>100”,其它字串的区间如“abc =>
cde”
[begin,end)
|
void |
Searcher.updateElement(IndexElement element,
List<? extends IndexKeyword> keywords)
更新/创建索引条目
|
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
MicroserviceSearcher.searchAll(List<? extends IndexRange> andRanges,
List<? extends IndexRange> orRanges,
List<? extends IndexKeyword> andKeywords,
List<? extends IndexKeyword> orKeywords,
SearchOption options) |
IndexResults |
MicroserviceSearcher.searchAll(List<? extends IndexRange> andRanges,
List<? extends IndexRange> orRanges,
List<? extends IndexKeyword> andKeywords,
List<? extends IndexKeyword> orKeywords,
SearchOption options) |
void |
MicroserviceSearcher.updateElement(IndexElement element,
List<? extends IndexKeyword> keywords) |
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
AbstractSearcher.search(List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.searchRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.searchRange(String begin,
String to,
List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.union(List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.unionRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options) |
| 限定符和类型 | 方法和说明 |
|---|---|
static IndexKeyword |
IndexKeywordHelper.newKeyword(String format)
由格式串“<关键词>!
|
static IndexKeyword |
IndexKeywordHelper.newKeyword(String keyword,
long rate)
创建关键词项
|
static IndexKeyword |
IndexKeywordHelper.prefixKeyword(String prefix)
生成用于查询时限定索引项key前缀的关键词
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<IndexKeyword> |
IndexKeywordHelper.addKeywordIfNotNull(List<IndexKeyword> list,
String keyword,
long rate)
当关键字不为空时添加
|
static List<IndexKeyword> |
IndexKeywordHelper.toKeywords(String... keywords)
转换字串数组为关键词数组
|
| 限定符和类型 | 方法和说明 |
|---|---|
static List<IndexKeyword> |
IndexKeywordHelper.addKeywordIfNotNull(List<IndexKeyword> list,
String keyword,
long rate)
当关键字不为空时添加
|
| 限定符和类型 | 类和说明 |
|---|---|
class |
KeywordVo
关键词VO
|
Copyright © 2021. All rights reserved.