search and index data