| 程序包 | 说明 |
|---|---|
| cn.weforward.data.search | |
| cn.weforward.data.search.ms | |
| cn.weforward.data.search.support |
| 限定符和类型 | 方法和说明 |
|---|---|
SearchOption |
SearchOption.setEndRate(long rate)
匹配率-结束
|
SearchOption |
SearchOption.setLimit(int limit)
限制数
|
SearchOption |
SearchOption.setOption(int option)
设置选项
|
SearchOption |
SearchOption.setRate(long rate)
匹配率
|
SearchOption |
SearchOption.setStartRate(long rate)
匹配率-开始
|
static SearchOption |
SearchOption.valueOf(int option)
构造选项
|
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
Searcher.search(List<? extends IndexKeyword> keywords,
SearchOption options)
搜索符合指定关键词表的条目
|
IndexResults |
Searcher.search(SearchOption options,
String... keyword)
搜索符合指定关键词表的条目
|
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.searchRange(String begin,
String to,
SearchOption options)
按两个区间词进行搜索,通常用于数值的区间查找,但数值转换为字串前需要补零对齐,如“010=>100”,其它字串的区间如“abc => cde”
[begin,end)
|
IndexResults |
Searcher.union(List<? extends IndexKeyword> keywords,
SearchOption options)
取指定关键词表的并集,与search的最大区别是前者的结果是“与”,后者的结果是“或”
|
IndexResults |
Searcher.union(SearchOption options,
String... keyword)
取指定关键词表的并集,与search的最大区别是前者的结果是“与”,后者的结果是“或”
|
IndexResults |
Searcher.unionRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options)
按多个区间词进行搜索,通常用于数值的区间查找,但数值转换为字串前需要补零对齐,,如“010=>100”,其它字串的区间如“abc =>
cde”
[begin,end)
|
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
MicroserviceSearcher.searchAll(List<? extends IndexRange> andRanges,
List<? extends IndexRange> orRanges,
List<? extends IndexKeyword> andKeywords,
List<? extends IndexKeyword> orKeywords,
SearchOption options) |
| 限定符和类型 | 方法和说明 |
|---|---|
IndexResults |
AbstractSearcher.search(List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.search(SearchOption options,
String... keyword) |
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.searchRange(String begin,
String to,
SearchOption options) |
IndexResults |
AbstractSearcher.union(List<? extends IndexKeyword> keywords,
SearchOption options) |
IndexResults |
AbstractSearcher.union(SearchOption options,
String... keyword) |
IndexResults |
AbstractSearcher.unionRange(List<? extends IndexRange> ranges,
List<? extends IndexKeyword> keywords,
SearchOption options) |
Copyright © 2021. All rights reserved.