might try creating the search in the UI, saving it...
# suitescript
j
might try creating the search in the UI, saving it and then loading it in the debugger, you can look at what variables are being used in the search object