code: public void register(SearchManager searchManager, SearchManager parentSearchManager, QueryHandler handler,
                          QueryHandler parentHandler) throws RepositoryConfigurationException
     {
        indexers.put(searchManager.getWsId(), new Indexer(searchManager, parentSearchManager, handler, parentHandler));
        if (LOG.isDebugEnabled())
        {
           LOG.debug("Register " + searchManager.getWsId() + " " + this + " in " + indexers);
        }
     }
docs: This method will register a new Indexer according to the given parameters.
  
  @param searchManager
  @param parentSearchManager
  @param handler
  @param parentHandler
  @throws RepositoryConfigurationException