你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

NGramTokenFilter interface

生成给定大小的 n 元语法。 此令牌筛选器是使用 Apache Lucene 实现的。

属性

maxGram

最大 n 克长度。 默认值为 2。 最大值为 300。 默认值:2。

minGram

最小 n 克长度。 默认值为 1。 最大值为 300。 必须小于 maxGram 的值。 默认值:1。

name

令牌筛选器的名称。 它必须仅包含字母、数字、空格、短划线或下划线,只能以字母数字字符开头和结尾,且最多包含 128 个字符。

odatatype

多态鉴别器

属性详细信息

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.NGramTokenFilter" | "#Microsoft.Azure.Search.NGramTokenFilterV2"

属性值

"#Microsoft.Azure.Search.NGramTokenFilter" | "#Microsoft.Azure.Search.NGramTokenFilterV2"