Placing an index on a field in an embedded type

Following up for some further guidance here. @Jay-Fauna, can you help by giving an example of the type of resolver UDF mentioned? I have also had difficulty with manually defining indexes to achieve this result so help here would also be great.