This images says everything. So when a user search “How to solve ___ in this software” in google search , we get very structured results from Quora and stackoverflow.
Am not exactly sure how to get this but previously I have used Google Webmaster Structured Data
And when people search, i was able to get something like below . Do you guys know how? because currently my discourse site on webmaster shows " We do not detect any structured data on your site."