Have you tried creating the search in the UI then ...
# suitescript
r
Have you tried creating the search in the UI then export it using the Search Export Tool