Lear is correct on the 330 days. At AJX or AJV, that will be impossible. In order to qualify for the foreign earned income exclusion you must:
1. have a foreign earned income
2. tax home must be in a foreign country
3. one of the following
a. bona fide foreign residence
b. pay foreign tax in a country with a tax treaty with the US
c. out of the US 330 days
The specifics of each are located on the IRS website.
I am buying a house in Thailand (technically my wife since I cannot own it)but merly owning a house there will not quailfy me. I will have to have that as my actual residence (which we are doing). There are no set guidelines as to what the IRS uses, but I assume they are pretty picky. The info is on the website for those who are interested, but its too long to try to explain here.