0

我想返回“test”键中没有“hello”字符串的所有文档。所以,我创建了以下查询,它没有过滤包含“hello”q的文档:-test:(“hello”)

[{
 "test":["hello", "second"],
  id:123
},
{
 "test":["hello1", "second1"],
  id:1234
}
]

预期结果:

[
 "test":["hello1", "second1"],
  id:1234
}
]
4

1 回答 1

0

“test”是一个字符串,multivalued=true 和 indexed=false。似乎 solr 中的过滤仅适用于索引字段。一旦我将字段“测试”编入索引,过滤就可以正常工作。

于 2013-12-18T21:28:48.037 回答