0

我正在尝试查找我的数据的查询,以提升所有包含的数字项。

例如:

A query on a field "description" contains these terms: 
"PatientA Disease II 12 A 7 Cell 348 go"

我正在尝试从 Elasticsearch 中获取其“描述”字段包含与上述类似术语的项目。相似意味着搜索查询中包含的整数值特别相似。此外,应忽略搜索数据中包含的所有标点符号。

期望的结果:

PatientA Cell Disease II 12 A 7 348 go
PatientB Disease II 12 A 7 Nucleus 348 go
PatientC, OK, II, 12 A, 7 Cell, 348 go
PatientD 7 Disease II 12-A Cell 348-go

我尝试过的查询总是对每个术语进行相同的权衡,并被标点符号分散注意力。我找到了这篇关于提升某些领域的帖子。Elasticsearch “More Like This” API 与 more_like_this 查询

但是,如何提升特定领域的某些术语?谢谢!

4

1 回答 1

0

我认为您可以通过附加类似some_keyword^10.

虽然我在我的代码中找到了一些参考资料,但我不知道在哪里寻找文档......

于 2013-10-16T19:00:02.090 回答