I am a newbie of Solr using version 6.5.0. How can i change name of function query field like alias name in mysql. In below response hsin field showing data in a field name as "hsin(6371, true, latitude, longitude, 0, 0)" i want to change that field name into a "distance". How can i do that?
Response:
{
"responseHeader":{
"status":0,
"QTime":0,
"params":{
"q":"car",
"indent":"on",
"fl":"hsin(6371, true, latitude, longitude, 0, 0) ",
"sort":"hsin(6371, true, latitude, longitude, 0, 0) desc",
"wt":"json"}},
"response":{"numFound":2,"start":0,"docs":[
{
"hsin(6371, true, latitude, longitude, 0, 0) ":8679.458682079623},
{
"hsin(6371, true, latitude, longitude, 0, 0) ":7560.780673825484}]
}}