BaseIndexer class, factor out webapp indexer code