security enhancements on REST global search: related to issue #157