Regrouped indexing functions in IndexService
Fixed create Index, added phpdoc
Added testCases to search and index services