public class QueryCondition
extends java.lang.Object
构造器和说明 |
---|
QueryCondition(java.lang.String query) |
限定符和类型 | 方法和说明 |
---|---|
QueryCondition |
filter(java.util.function.Predicate<Document> filter)
配置过滤器
|
QueryCondition |
freshness(Freshness freshness)
热度(时间范围)
|
java.util.function.Predicate<Document> |
getFilter()
获取过滤器
|
Freshness |
getFreshness()
获取热度(时间范围)
|
int |
getLimit()
获取限制条数
|
java.lang.String |
getQuery()
获取查询字符串
|
double |
getSimilarityThreshold()
获取相似度阈值
|
QueryCondition |
limit(int limit)
配置限制条数
|
QueryCondition |
similarityThreshold(double similarityThreshold)
配置相似度阈值
|
public java.lang.String getQuery()
public Freshness getFreshness()
public int getLimit()
public double getSimilarityThreshold()
public java.util.function.Predicate<Document> getFilter()
public QueryCondition freshness(Freshness freshness)
public QueryCondition limit(int limit)
public QueryCondition filter(java.util.function.Predicate<Document> filter)
public QueryCondition similarityThreshold(double similarityThreshold)