Search method always return empty objects with Navisworks file but it works with Revit file. Here is the sample code which works with revit file but doesn't work with navisworks file.
viewer.search('Levels', function(dbIds){ console.log(dbIds); }, null, ['Type'])
Please let me know if you have a solution for .nwd file