public static enum SearchParams._Fields extends java.lang.Enum<SearchParams._Fields> implements org.apache.thrift.TFieldIdEnum
| Enum Constant and Description |
|---|
ABTEST
Abtest
|
AGGREGATES
添加统计信息(aggregate)相关参数
|
CONFIG
config for search.
|
CUSTOM_CLAUSE
自定义查询子句
|
CUSTOM_PARAM |
DEEP_PAGING |
DISABLE_FUNCTIONS
关闭某些功能模块(disable)
有如下场景需要考虑:
1、如果要关闭整个qp的功能,则指定disableValue="qp"。
2、要指定某个索引关闭某个功能,则可以指定disableValue="qp:function_name:index_names",
其中index_names可以用“|”分隔,可以为index_name1|index_name2...
|
DISTINCTS
聚合打散条件
|
FILTER
过滤规则(filter)
|
FINAL_DISTINCT
精排聚合打散条件
|
QUERY
设定指定索引字段范围的搜索关键词(query)
此query是查询必需的一部分,可以指定不同的索引名,并同时可指定多个查询及之间的关系
(AND, OR, ANDNOT, RANK)。
例如查询subject索引字段的query:“手机”,可以设置为 query=subject:'手机'。
上边例子如果查询price 在1000-2000之间的手机,其查询语句为: query=subject:'手机'
AND price:[1000,2000]
NOTE: text类型索引在建立时做了分词,而string类型的索引则没有分词。
|
QUERY_PROCESSOR_NAMES
设置查询分析规则(qp)
|
RANK |
RAW_QUERY
终端用户输入的query
|
SORT
排序字段及排序方式(sort)
|
SUGGEST
下拉提示是搜索服务的基础功能,在用户输入查询词的过程中,智能推荐候选query,减少用户输入,帮助用户尽快找到想要的内容。
OpenSearch下拉提示在实现了中文前缀,拼音全拼,拼音首字母简拼查询等通用功能的基础上,实现了基于用户文档内容的query智能识别。
用户通过控制台的简单配置,就能拥有专属的定制下拉提示。此外,控制台上还提供了黑名单,推荐词条功能,让用户进一步控制下拉提示
的结果,实现更灵活的定制。
|
SUMMARIES
动态摘要(summary)信息
|
USER_ID
终端用户的id,用来统计uv信息
|
| Modifier and Type | Method and Description |
|---|---|
static SearchParams._Fields |
findByName(java.lang.String name)
Find the _Fields constant that matches name, or null if its not found.
|
static SearchParams._Fields |
findByThriftId(int fieldId)
Find the _Fields constant that matches fieldId, or null if its not found.
|
static SearchParams._Fields |
findByThriftIdOrThrow(int fieldId)
Find the _Fields constant that matches fieldId, throwing an exception
if it is not found.
|
java.lang.String |
getFieldName() |
short |
getThriftFieldId() |
static SearchParams._Fields |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static SearchParams._Fields[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SearchParams._Fields CONFIG
public static final SearchParams._Fields QUERY
public static final SearchParams._Fields FILTER
public static final SearchParams._Fields SORT
public static final SearchParams._Fields RANK
public static final SearchParams._Fields AGGREGATES
public static final SearchParams._Fields DISTINCTS
public static final SearchParams._Fields SUMMARIES
public static final SearchParams._Fields QUERY_PROCESSOR_NAMES
public static final SearchParams._Fields DEEP_PAGING
public static final SearchParams._Fields DISABLE_FUNCTIONS
public static final SearchParams._Fields CUSTOM_PARAM
public static final SearchParams._Fields SUGGEST
public static final SearchParams._Fields ABTEST
public static final SearchParams._Fields USER_ID
public static final SearchParams._Fields RAW_QUERY
public static final SearchParams._Fields FINAL_DISTINCT
public static final SearchParams._Fields CUSTOM_CLAUSE
public static SearchParams._Fields[] values()
for (SearchParams._Fields c : SearchParams._Fields.values()) System.out.println(c);
public static SearchParams._Fields valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic static SearchParams._Fields findByThriftId(int fieldId)
public static SearchParams._Fields findByThriftIdOrThrow(int fieldId)
public static SearchParams._Fields findByName(java.lang.String name)
public short getThriftFieldId()
getThriftFieldId in interface org.apache.thrift.TFieldIdEnumpublic java.lang.String getFieldName()
getFieldName in interface org.apache.thrift.TFieldIdEnumCopyright © 2023. All Rights Reserved.