位置增量启用(Enable Position Increments) #
确定是否在令牌计数中包含位置增量。
基本用法 #
PUT my-index
{
"mappings": {
"properties": {
"content": {
"type": "token_count",
"analyzer": "standard",
"enable_position_increments": true
}
}
}
}
适用的字段类型 #
token_count(mapper-extras 模块)
默认值 #
true
说明 #
当启用时,停用词等被移除的令牌所创建的位置间隙被计入令牌计数。当禁用时,只计算实际产生的令牌。