Enable 'search' function
Implement 'search' function to query by given conditions