0
我在SOLR一些嵌套数据。如何筛选从子文档特定字段SOLR
{
"name":["Abc"],
"age":[30],
"hobby":["singing"],
"_childDocuments_":[
{
"college":["xyz"],
"year":[2015],
"id":"3752-22491",
"3.c.m.c-id":["256939"],
"2.c.m-id":["354291"],
"path":["3.c.m.ci"]},
{
"subject":["history","science"],
"marks-1":[75],
"marks-2":[75],
"id":"3752-802126",
"2.c.m-id":["354291"],
"path":["2.c.m"]}
]}
我不是只得到标记-1和标记-2从Solr的。当我搜索时,我发现整个数据都是作为响应。我只需要帮助获取这两个领域。
感谢您的帮助提前。
你能告诉你当前的查询? – Mysterion
我正在使用这个查询(http:// localhost:8983/solr/test/select?indent = on&highlight = true&start = 0&rows = 10&wt = json&hl = true&hl.method = unified&fl = *,[child parentFilter = path:1.c childFilter = “路径:* C *” 限制= 50] q =名:Abc ) – Learner