xapian-bridge C port

endlessm/eos-sdk#2463
`g_error()` will abort, so the code after this is unreachable.