API change: pass corpus to search methods, instead of massing getter to constructor