Move config into API so Xapian doesn't need  passed every time