xapian-bridge C port

endlessm/eos-sdk#2463
Can compare pointers (see prev. comments)