implemented indexing for core search