【发布时间】:2020-01-10 08:32:45
【问题描述】:
我使用的是Solr 7.6,文档结构如下:
{
"source_ln":"en",
"source_text":"the sky is blue",
"target_ln":"hi",
"target_text":"आसमान नीला है",
},
{
"source_ln":"en",
"source_text":"the sky is also called the celestial sphere",
"target_ln":"hi",
"target_text":"आकाश को आकाशीय क्षेत्र भी कहा जाता है",
}
所有字段都使用 StandardTokenizerFactory 标记器定义。
当我查询“source_text”:“天空”时,
结果集应该只包含第一个文档。
在第二个文档中,字段 "source_text":"the sky is also called the celestial sphere" 包含 8 个术语,而查询字段 "source_text":"the sky" 仅包含 2 个术语,所以至少 50%不满足匹配条件,因此第二个文档不会出现在结果集中。
有没有办法让文档匹配至少 50% 的查询字段术语/标记?
提前致谢。
【问题讨论】: