嵌套架构时,不应发送Solr错误父过滤器

时间:2019-07-19 04:40:48

标签: solr nested

这是我当前的简单solr文档

{ "id": 1, "type": "dad", "_childDocuments_": [ { "id": 2, "name": "Alice" }, { "id": 3, "name": "Bob" } ] } 您应该可以将childFilterparentFilter一起使用

但是我仍然收到此错误:“嵌套架构时不应发送父级筛选器”

查询:

q=type:dad&fl= *,[child parentFilter=type:dad childFilter=name:Alice limit=10]

这应该是结果,但我收到上面的错误:

"response": {
"numFound": 1,
"start": 0,
"docs": [
    {
        "id": "1",
        "type": ["dad"],
        "_version_": 1603065478506348544,
        "type_str": ["dad"],
        "_childDocuments_": [
            {
                "id": "2",
                "name": ["Alice"],
                "_version_": 1603065478506348544,
                "name_str": ["Alice"]
            }
        ]
    }
]

}

0 个答案:

没有答案