Make functions for some common xapian usage patterns.