How to verify changing search results

you have to create a function to handle. As it uses groovy script. Try writing the function instead of record and playback. The functions can be written in a loop , extract the identifier property like text and validate the text .