我将类别存储在应该在文档本身中加权的文档中,例如餐厅 - 0.5 (= 50%)、酒吧 - 0.25、音乐 - 0.25。不幸的是,我是 solr 的新手,并不真正知道它可能属于 solr 中的哪个功能。
文件如下所示:
<str name="id">C1</str>
<str name="name">Wine</str>
<str name="type">Compass</str>
<str name="geo">51.049842,13.740707</str>
<double name="radius">5.0</double>
<arr name="cat">
<str>Restaurant</str>
<str>Restaurant</str>
<str>Bar</str>
<str>Music</str>
</arr>
如何查询预期重量?除了存储类似条目还有其他方法吗?