search engine initial implementation