xapian-bridge C port

endlessm/eos-sdk#2463
What do we need from `config.h` here?