Moved "index" and "search" packages to the "logic" package.