I'm studying chinese medicine at the moment. I'm not surprised that your diet caused you problems. If you imagine your digestive system as a pot of food cooking over a fire - it needs to stay warm to digest the food. Then it easy to see how raw cooling foods will cool this and harm your digestion. You need to start eating warming foods that are cooked - preferably boiled or baked. At least one cooked meal a day as a rule. The following are warming foods:
oats, spelt, quinoa, rice corn buckwheat & rye & seeds &cereals, ginger, dill, carrots, black beans, aduki beans, sweet potato, onion, leek, garlic
obviously eat less raw foods especially as it's autumn. They make sense in summer but not when it's colder
chew food thoroughly as this helps to break down the food and provide more energy
(I got some of this info from Healing with Whole Foods by Paul Pritchard - an excellant book)
When and how you eat are almost as important as what you eat
Eat your largest meal in the morning preferably between 7-9am (the peak time for the stomach), a smaller meal for lunch, and less for your evening meal. Try also to eat your evening meal before 7pm as this is the low period for the stomach.
Don't do anything else while eating. Reading, watching tv, moving about and especially arguing can harm digestion.