我在 solr 中使用多核搜索,结果未混合,为了对结果进行分类,我需要从响应中获取 corename,请考虑以下响应
{
"responseHeader": {
"status": 0,
"QTime": 0,
"params": {
"fl": "title,core_name",
"indent": "true",
"q": "*:*",
"_": "1383405269434",
"wt": "json",
"rows": "2"
}
},
"response": {
"numFound": 926,
"start": 0,
"docs": [
{
"title": "Main Page"
},
{
"title": "Albert Einstein"
}
]
}
}
如果我给一个参数说 core_name 它应该在每个结果条目中返回核心名称,即
{
"responseHeader": {
"status": 0,
"QTime": 0,
"params": {
"fl": "title,core_name",
"indent": "true",
"q": "*:*",
"_": "1383405269434",
"wt": "json",
"rows": "2"
}
},
"response": {
"numFound": 926,
"start": 0,
"docs": [
{
"title": "Main Page"
"core_name": "collection1"
},
{
"title": "Albert Einstein"
"core_name": "collection1"
}
]
}
}
是否有任何 solr 变量来获取核心名称?