xapian-bridge C port

endlessm/eos-sdk#2463
Original code called this `collapse_key`. In any case, consider making `#define`s out of all these query option string literals.