So you recreate your search that you've got in code there on the netsuite user interface (Website) and then when you save the search, go back in and edit it you will see the 'Export to saved search' button appear, clicking that will allow you to copy the ss2 code version of the search and you can see if it works