I have called the data from a Google spreadsheet and listed it in the list view with an image. I have added a search box for the list view with the image. There is more than one text of the same word but different data While I am typing a text in the search box. The data are correctly filtered and shown as expected. But while I am clicking in the list view, it is show the first matched text index only, not the one I have selected.
GetOccurrences block will return the count of item in a list (how many times it is in the list) and index block will return the indices of these items.
You can use a loop to iterate each list item to check its index, once index is received for first occurrence then replace it with some placeholder value then iterate again to get index of next occurrence.