Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
有没有办法在查询时通过特定多值字段中的值数量来提升文档?即更多的值,更多的提升。
有没有类似的东西bf="count(pets)^5.0"- pets 是一个多值字段?
bf="count(pets)^5.0"
我知道我可以在索引时存储计数并在查询时使用值提升bf="number_of_pets^5.0"。但是,我正在尝试为此找到一个查询时间解决方案,这样我就可以避免仅仅为了实现这一点而修改架构(并重新索引所有内容)。
bf="number_of_pets^5.0"
这已经被问过多次了。看起来像一个想要的功能!
查看wiki,我看不到任何与多值字段相关的函数,所以我认为可以安全地假设在提供这些答案之后没有任何变化。