Solr sort by the value of function query does not work
问题 I'm working on a feature which relies on sorting the value of function query. Function query is as below : http://localhost:8983/solr/collection/select?q=*:*&sort=if(exists(f1_t), f1_t, theme)+ASC&wt=json&indent=true The sort function is " if(exists(f1_t), f1_t, theme) ASC " So basically what I'm doing is if the field " f1_t " (which is a dynamic field of type TextField) exists then the sorting is based on the value of the field else the sorting is based on the value of "theme" which is also