added search functionality
set precompilation true in production mode