The causes of heart burn can be gastritis (stomach irritation due to Helicobacter pylori), peptic ulcer (again caused by H pylori) and Hiatal hernia; apart from reflux (GERD; gastroesophageal reflux disease). A 6 month heartburn would warrant an upper gastrointestinal endoscopy (camera exam) to look for above condition. The H. Pylori can be confirmed by other tests too. It is treated by a combination of medicines; Amoxicillin, Metronidazole and Zantac. This would abate the heartburn completely. Any other cause of heartburn is not very likely. So you should not worry.
Please feel free for your follow up questions.