implemented an advanced index()

also implemented contact->search() with the advanced index() that’s now
available