类 SchemaProperty.Builder
java.lang.Object
com.lark.oapi.service.search.v2.model.SchemaProperty.Builder
- 封闭类:
SchemaProperty
-
构造器概要
构造器 -
方法概要
修饰符和类型方法说明answerOption(SchemaFieldAnswerOption answerOption) 问答产品设置,仅在datasource中enable_answer为true时生效build()字段描述filterOptions(SchemaFilterOptions filterOptions) 属性筛选的可选配置,当 is_searchable 为 true 时,该字段为必填参数isFilterable(Boolean isFilterable) 该属性是否可用作返回字段,为 false 时,该字段不会被筛选。isReturnable(Boolean isReturnable) 该属性是否可用作返回字段,为 false 时,该字段不会被召回和展示。isSearchable(Boolean isSearchable) 该属性是否可用作搜索,默认为 falseisSortable(Boolean isSortable) 该属性是否可用作搜索结果排序,默认为 false。属性名searchOptions(SchemaSearchOptions searchOptions) 属性搜索的可选配置,当 is_searchable 为 true 时,该字段为必填参数sortOptions(SchemaSortOptions sortOptions) 属性排序的可选配置,当 is_sortable 为 true 时,该字段为必填字段属性类型属性类型typeDefinitions(SchemaTypeDefinitions typeDefinitions) 相关类型数据的定义和约束
-
构造器详细资料
-
Builder
public Builder()
-
-
方法详细资料
-
name
属性名示例值:summary
- 参数:
name-- 返回:
-
type
属性类型示例值:text
- 参数:
type-- 返回:
-
type
属性类型示例值:text
- 参数:
type-SchemaPropertySchemaPropertyTypeEnum- 返回:
-
isSearchable
该属性是否可用作搜索,默认为 false示例值:true
- 参数:
isSearchable-- 返回:
-
isSortable
该属性是否可用作搜索结果排序,默认为 false。如果为 true,需要再配置 sortOptions示例值:false
- 参数:
isSortable-- 返回:
-
isReturnable
该属性是否可用作返回字段,为 false 时,该字段不会被召回和展示。默认为 false示例值:true
- 参数:
isReturnable-- 返回:
-
sortOptions
属性排序的可选配置,当 is_sortable 为 true 时,该字段为必填字段示例值:
- 参数:
sortOptions-- 返回:
-
typeDefinitions
相关类型数据的定义和约束示例值:
- 参数:
typeDefinitions-- 返回:
-
searchOptions
属性搜索的可选配置,当 is_searchable 为 true 时,该字段为必填参数示例值:
- 参数:
searchOptions-- 返回:
-
isFilterable
该属性是否可用作返回字段,为 false 时,该字段不会被筛选。默认为 false示例值:false
- 参数:
isFilterable-- 返回:
-
filterOptions
属性筛选的可选配置,当 is_searchable 为 true 时,该字段为必填参数示例值:
- 参数:
filterOptions-- 返回:
-
answerOption
问答产品设置,仅在datasource中enable_answer为true时生效示例值:
- 参数:
answerOption-- 返回:
-
desc
字段描述示例值:desc
- 参数:
desc-- 返回:
-
build
-