你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
EdgeNGramTokenFilter interface
从输入标记的前面或后面开始,生成给定大小 (s) 的 n 元语法。 此令牌筛选器是使用 Apache Lucene 实现的。
属性
max |
最大 n 元语法长度。 默认值为 2。 最大值为 300。 默认值:2。 |
min |
最小 n 元语法长度。 默认值为 1。 最大值为 300。 必须小于 maxGram 的值。 默认值:1。 |
name | 令牌筛选器的名称。 它必须仅包含字母、数字、空格、短划线或下划线,只能以字母数字字符开头和结尾,且最多包含 128 个字符。 |
odatatype | 多态鉴别器 |
side | 指定应从哪个端生成 n 元语法的输入。 默认值为“front”。 可能的值包括:“Front”、“Back” |
属性详细信息
maxGram
最大 n 元语法长度。 默认值为 2。 最大值为 300。 默认值:2。
maxGram?: number
属性值
number
minGram
最小 n 元语法长度。 默认值为 1。 最大值为 300。 必须小于 maxGram 的值。 默认值:1。
minGram?: number
属性值
number
name
令牌筛选器的名称。 它必须仅包含字母、数字、空格、短划线或下划线,只能以字母数字字符开头和结尾,且最多包含 128 个字符。
name: string
属性值
string
odatatype
多态鉴别器
odatatype: "#Microsoft.Azure.Search.EdgeNGramTokenFilter" | "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2"
属性值
"#Microsoft.Azure.Search.EdgeNGramTokenFilter" | "#Microsoft.Azure.Search.EdgeNGramTokenFilterV2"
side
指定应从哪个端生成 n 元语法的输入。 默认值为“front”。 可能的值包括:“Front”、“Back”
side?: EdgeNGramTokenFilterSide