A robust synthesis of functionalized 2H-indazoles via solid state melt reaction (SSMR) and their anti-tubercular activity.