Cleaned repository before search