add index and search demo