solr与数字和“或quot”的匹配完全匹配

发布于 2025-01-28 02:23:17 字数 528 浏览 3 评论 0原文

我在solr(plote_fy__type_list)中有一个字段,我正在尝试执行精确的“或”匹配,但是一旦我在其中提出第二个值就可以进行部分匹配。

完成_FY__TYPE_LIST:2020 | 返回所有记录完全匹配的年份“ 2020”。

postemion_fy__type_list:2020或2022 |在这一年中返回任何具有“ 20”,22“或“ 02”的记录。

如果我正确理解:它只能以2020年或2022年的一年返回

记录 无效的语法。

postemion_fy__type_list:(2020)或(2022) |返回部分比赛年。

postemion_fy__type_list:“ 2020”或“ 2022” |返回部分比赛年。

postemion_fy__type_list:2020或完成__fy__type_list:2022 |返回部分比赛年。

I have a field in SOLR (Completion_FY__TYPE_LIST) that I'm trying to perform an exact "OR" match on but as soon as I put a second value in it does a partial match.

Completion_FY__TYPE_LIST: 2020 |
Returns all records exactly matching Year "2020".

Completion_FY__TYPE_LIST: 2020 or 2022 | Returns ANY record with "20", "22" or "02" in the Year.

If I'm understanding correctly: it should only be returning records with a year of 2020 or 2022.

Other formats I've tried:

Completion_FY__TYPE_LIST:(2020 or 2022) | Invalid syntax.

Completion_FY__TYPE_LIST:(2020) or (2022) | Returns partial match years.

Completion_FY__TYPE_LIST:"2020" or "2022" | Returns partial match years.

Completion_FY__TYPE_LIST: 2020 or Completion_FY__TYPE_LIST: 2022 | Returns partial match years.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

轻拂→两袖风尘 2025-02-04 02:23:17

position_fy__type_list :(“ 2020”“ 2022”)似乎是修复程序。

dev注意:如果您不包围双引号中的每个参数。

Completion_FY__TYPE_LIST:("2020" "2022") seems to be the fix.

Dev note: If you do not surround each of the params in double-quotes you will end up with funky data result sets Also if you try to do this with fields that have spaces in the names without them you'll also get funky data sets.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文