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