gpt4 book ai didi

amazon-web-services - 结构化查询中的短语和术语有什么区别?

转载 作者:行者123 更新时间:2023-12-03 00:52:45 27 4
gpt4 key购买 nike

结构化查询中的短语术语有何不同?

我的 CloudSearch 域中有此数据:

{
"guid": 9,
"operating_systems": [
"12345", "123"
],
"manufacturer": "sealand",
"model": "gaming tree whale plum",
"identifier": "gaming tree whale plum",
"type": "computer",
"created_at": "1982-10-14T14:43:54Z"
}

"model"text 类型,"identifier"literal 类型,"created_at “日期类型。

让我们问几个问题:

(phrase field=model 'tree whale')                match
(phrase field= identifier 'tree whale') no match
(phrase 'tree whale') match
(phrase field=created_at '1982-10-14T14:43:54Z') match (this shouldn't match according to docs)

(term field=model 'tree whale') match
(term field= identifier 'tree whale') no match
(term 'tree whale') match
(term field=created_at '1982-10-14T14:43:54Z') match

是否有什么事情是我可以用 phrase 做而用 term 做不到的,反之亦然?

最佳答案

如果有人想知道,事实证明短语搜索匹配整个短语,而术语搜索匹配可能是短语但可能是散布在文档中的单词的术语。示例:

文字:

"model": gaming tree whale plum

以下保留:

(phrase field=model 'tree whale')                match
(phrase field=model 'tree plum') no match

(term field=model 'tree whale') match
(term field=model 'tree plum') match

关于amazon-web-services - 结构化查询中的短语和术语有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35911710/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com