Seach query select fix r2

fixes jira issue 1467

https://jira.oceanobservatories.org/tasks/browse/OOIION-1467?focusedCommentId=27614#comment-27614