| 程序包 | 说明 |
|---|---|
| cn.weforward.data.search | |
| cn.weforward.data.search.ms | |
| cn.weforward.data.search.support | |
| cn.weforward.data.search.util |
| 限定符和类型 | 方法和说明 |
|---|---|
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 |
IndexResults.snapshot()
产生一个快照(与当前互不影响)
|
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) |
| 限定符和类型 | 类和说明 |
|---|---|
static class |
IndexResultsHelper.Empty
空对象
|
static class |
IndexResultsHelper.Singleton
当结果只有一项时,能使用其作简单快捷的封装
|
| 限定符和类型 | 方法和说明 |
|---|---|
static IndexResults |
IndexResultsHelper.empty()
空对象
|
static IndexResults |
IndexResultsHelper.singleton(IndexResult element)
快速封装(构造)单结果项IndexResults
|
IndexResults |
IndexResultsHelper.Singleton.snapshot() |
IndexResults |
IndexResultsHelper.Empty.snapshot() |
Copyright © 2021. All rights reserved.