Both parameters are optional. Keep in mind also that this task will skip repositories (and certain commits) you have already indexed. It stores the last commit SHA of every indexed repository in the database.
As an example, if you have 3000 of repositories and you want to run tree separate indexer your commands would be like:
1. Index all repositories by `gitlab:elastic:index_repositories` rake task(see above). Probably you will do it in parallel
1. Enable elasticsearch and restart GitLab application.
1. Run indexers for database, wikis and repositories. By running reposotory indexer twise you will be sure that eveything is indexed because some commits could be pushed while you performed initial indexing. And don't worry, repository indexer will skip repositories and commits that are already indexed, in other words, it will be much faster this time.