в настоящее время мой результат solr равен
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"indent":"on",
"start":"0",
"q":"deepak\r\n",
"wt":"json",
"rows":"10",
"version":"2.2"}},
"response":{"numFound":1,"start":0,"docs":[
{
"summary":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel porta odio. Maecenas ligula erat, ullamcorper ut iaculis non, vulputate vel velit. Cras facilisis, lectus a cursus accumsan, nunc libero aliquam magna, eu porta nulla risus quis nisi.",
"id":"1",
"text":"Indian Cellular Market Report and Forcasts 2010 - 2015",
"price":1225.0,
"pages":"1",
"release_date":"2011-03-03T00:00:00Z",
"product_type":"Report",
"publisher":"deepak upadhyay",
"regionText":[
"Asia"],
"catagoryId":["2","3"],
"catagoryText":[
"Banking & finance",
"ATM"],
"regionId":["1"]}]
}}
я хочу, чтобы мой набор результатов выглядел следующим образом
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"indent":"on",
"start":"0",
"q":"deepak\r\n",
"wt":"json",
"rows":"10",
"version":"2.2"}},
"response":{"numFound":1,"start":0,"docs":[
{
"summary":"Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec vel porta odio. Maecenas ligula erat, ullamcorper ut iaculis non, vulputate vel velit. Cras facilisis, lectus a cursus accumsan, nunc libero aliquam magna, eu porta nulla risus quis nisi.",
"id":"1",
"text":"Indian Cellular Market Report and Forcasts 2010 - 2015",
"price":1225.0,
"pages":"1",
"release_date":"2011-03-03T00:00:00Z",
"product_type":"Report",
"publisher":"deepak upadhyay",
"regionText":[
"Asia"],
"catagoryId":["2","3"],
"catagoryText":[
"Banking & finance",
"ATM"],
"regionId":["1"]}]
}
"categories": [
{
"text": "the newly launched..",
"link": "#",
"id": "12"
},
{
"text": "the newly launched..",
"link": "#",
"id": "13"
}
],
"region": [
{
"text": "the newly launched..",
"link": "#",
"id": "14"
},
{
"text": "the newly launched..",
"link": "#",
"id": "15"
}
]
}
Здесь перечисленные ниже категории и регионы представляют собой объединение всех категорий.найдено в результате поиска, аналогично регионам.