You made your search on the UI, saved it, then go ...
# suitescript
a
You made your search on the UI, saved it, then go back and edit it and you will see the code of your search...