Shahjeeera is a plant. People use the oil, fruit, and seeds as medicine. Some people take caraway by mouth for digestive problems including heartburn, bloating, gas, loss of appetite, and mild spasms of the stomach and intestines. ... In foods, caraway is used as a cooking spice.