how does an enterprise search engine work