RediSearch FT.SEARCH 命令中的 FRAGS 参数有什么作用?
What FRAGS argument does in RediSearch FT.SEARCH command?
我查看了 RediSearch documentation 和下面 FT.SEARCH
的语法:
FT.SEARCH {index} {query} [NOCONTENT] [VERBATIM] [NOSTOPWORDS] [WITHSCORES] [WITHPAYLOADS] [WITHSORTKEYS]
[FILTER {numeric_field} {min} {max}] ...
[GEOFILTER {geo_field} {lon} {lat} {raius} m|km|mi|ft]
[INKEYS {num} {key} ... ]
[INFIELDS {num} {field} ... ]
[RETURN {num} {field} ... ]
[SUMMARIZE [FIELDS {num} {field} ... ] [FRAGS {num}] [LEN {fragsize}] [SEPARATOR {separator}]]
[HIGHLIGHT [FIELDS {num} {field} ... ] [TAGS {open} {close}]]
[SLOP {slop}] [INORDER]
[LANGUAGE {language}]
[EXPANDER {expander}]
[SCORER {scorer}]
[PAYLOAD {payload}]
[SORTBY {field} [ASC|DESC]]
[LIMIT offset num]
我在任何地方都找不到 FRAGS
的描述。 RediSearch FT.SEARCH
命令中的 FRAGS
参数有什么作用? {num}
参数有限制吗?
片段是搜索结果的子字符串,其中包含与搜索词相关的上下文信息;例如,在搜索 "Redis" 时,文档中的片段可能是
"found. Users liked Redis more than other..."
这是 summarization 功能的一部分
我查看了 RediSearch documentation 和下面 FT.SEARCH
的语法:
FT.SEARCH {index} {query} [NOCONTENT] [VERBATIM] [NOSTOPWORDS] [WITHSCORES] [WITHPAYLOADS] [WITHSORTKEYS]
[FILTER {numeric_field} {min} {max}] ...
[GEOFILTER {geo_field} {lon} {lat} {raius} m|km|mi|ft]
[INKEYS {num} {key} ... ]
[INFIELDS {num} {field} ... ]
[RETURN {num} {field} ... ]
[SUMMARIZE [FIELDS {num} {field} ... ] [FRAGS {num}] [LEN {fragsize}] [SEPARATOR {separator}]]
[HIGHLIGHT [FIELDS {num} {field} ... ] [TAGS {open} {close}]]
[SLOP {slop}] [INORDER]
[LANGUAGE {language}]
[EXPANDER {expander}]
[SCORER {scorer}]
[PAYLOAD {payload}]
[SORTBY {field} [ASC|DESC]]
[LIMIT offset num]
我在任何地方都找不到 FRAGS
的描述。 RediSearch FT.SEARCH
命令中的 FRAGS
参数有什么作用? {num}
参数有限制吗?
片段是搜索结果的子字符串,其中包含与搜索词相关的上下文信息;例如,在搜索 "Redis" 时,文档中的片段可能是
"found. Users liked Redis more than other..."
这是 summarization 功能的一部分