Issue fixed with MS SQL and custom search