0
是否有可能创建一个solr查询,其中只返回文档在多值字段中具有多个条目。例如:SOLR计数多值字段查询
docs: [
{
id: 1,
myfield: ["hello word", "hello stackoverflow"]
},
{
id: 2,
myfield: ["hello word"]
}
]
而我天真的样本查询只是为了说明我想要的东西:
/select?q=count(myfield.length, 'eq', 2)
谢谢AR1,不是我正在寻找的解决方案,但我想它是唯一的方法。 – Mewel