Allow setting custom trigram sets for a given document