{"action":"opened","issue":{"url":"https://api.github.com/repos/biggates/spring-data-mongodb-datatables/issues/1","repository_url":"https://api.github.com/repos/biggates/spring-data-mongodb-datatables","labels_url":"https://api.github.com/repos/biggates/spring-data-mongodb-datatables/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/biggates/spring-data-mongodb-datatables/issues/1/comments","events_url":"https://api.github.com/repos/biggates/spring-data-mongodb-datatables/issues/1/events","html_url":"https://github.com/biggates/spring-data-mongodb-datatables/issues/1","id":206248039,"number":1,"title":"Global search","user":{"login":"paulo-maia","id":6517124,"avatar_url":"https://avatars.githubusercontent.com/u/6517124?v=3","gravatar_id":"","url":"https://api.github.com/users/paulo-maia","html_url":"https://github.com/paulo-maia","followers_url":"https://api.github.com/users/paulo-maia/followers","following_url":"https://api.github.com/users/paulo-maia/following{/other_user}","gists_url":"https://api.github.com/users/paulo-maia/gists{/gist_id}","starred_url":"https://api.github.com/users/paulo-maia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paulo-maia/subscriptions","organizations_url":"https://api.github.com/users/paulo-maia/orgs","repos_url":"https://api.github.com/users/paulo-maia/repos","events_url":"https://api.github.com/users/paulo-maia/events{/privacy}","received_events_url":"https://api.github.com/users/paulo-maia/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-02-08T16:22:14Z","updated_at":"2017-02-08T16:22:14Z","closed_at":null,"body":"Global search can be fixed with:\r\n\r\n String globalFilterValue = input.getSearch().getValue();\r\n\t        if (StringUtils.hasText(globalFilterValue)) {\r\n\r\n\t            List<Criteria> crits = new ArrayList<Criteria>();\r\n\t            // add a 'WHERE .. LIKE' clause on each searchable column\r\n\t            for (Column column : input.getColumns()) {\r\n\t                if (column.getSearchable()) {\t                    \r\n\t                    Criteria c = Criteria.where(column.getData());\r\n\t                    c.regex(getLikeFilterPattern(globalFilterValue));\r\n\t                    crits.add(c);\r\n\t                }\r\n\t            }\r\n\t            \r\n\t            Criteria[] critsArray = new Criteria[crits.size()];\r\n\t            critsArray = crits.toArray(critsArray);\r\n\t            Criteria crit = new Criteria();\r\n\t            crit.orOperator(critsArray);\r\n\t            q.addCriteria(crit);\r\n\t        }"}}
{"actor":{"display_login":"paulo-maia"}}