How to verify changing search results

I have search facility in my web application. How can i create a test case where the search results can be validated as xpath will remain the same but no. of search results changes everytime.

Any idea folks?

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 .

Thanks Dhananjay, am more into play and record, sadly not be able to write loops for it.