xapian-bridge C port

endlessm/eos-sdk#2463
@cosimoc Don't forget to open the extra issue.