Hi Mukund, I am not sure what you are after but may be you can use this : q={!lucene df=city v=$qq}&qq=Adyar
https://cwiki.apache.org/confluence/display/solr/Local+Parameters+in+Queries Ahmet On Tuesday, January 7, 2014 3:39 PM, Mukundaraman valakumaresan <muk...@8kmiles.com> wrote: Hi The following query executes http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=locality:A<http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=city:Chennai> dyar But I wanted something like the one below which is not working. http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=locality:$str&str<http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=city:$str&str=Chennai> ="Adyar" http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=locality:<http://localhost:8983/solr/collection1/select?wt=json&indent=true&q=city:$str&str=Chennai> getAdjacentLocalities("Adyar") getAdjacentLocalities() is a custom function implemented. Any suggestions. Thanks & Regards Mukund