make interactive search work on either type of corpus