{"action":"created","issue":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/400","repository_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder","labels_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/400/labels{/name}","comments_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/400/comments","events_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/400/events","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/400","id":193645644,"number":400,"title":"Reverse search of item?","user":{"login":"HolyOne","id":293601,"avatar_url":"https://avatars.githubusercontent.com/u/293601?v=3","gravatar_id":"","url":"https://api.github.com/users/HolyOne","html_url":"https://github.com/HolyOne","followers_url":"https://api.github.com/users/HolyOne/followers","following_url":"https://api.github.com/users/HolyOne/following{/other_user}","gists_url":"https://api.github.com/users/HolyOne/gists{/gist_id}","starred_url":"https://api.github.com/users/HolyOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/HolyOne/subscriptions","organizations_url":"https://api.github.com/users/HolyOne/orgs","repos_url":"https://api.github.com/users/HolyOne/repos","events_url":"https://api.github.com/users/HolyOne/events{/privacy}","received_events_url":"https://api.github.com/users/HolyOne/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-12-05T23:59:10Z","updated_at":"2016-12-06T06:52:42Z","closed_at":null,"body":"I have a field \"email\" in my database.\r\nI select email from querybuilder and I have 2 options, BeginsWith and Endswith\r\n\r\nImplementing BeginsWith is easy\r\n\r\n      begins_with: function (v) {\r\n          return {\r\n              '$regex': \"^\\\\Q\" + v[0] + '\\\\E.*',\r\n          };\r\n\r\nBut for endswith part, I have another field in my database which is the reverse copyd of email field. (For Indexed search) its name is \"_email\"\r\n\r\n  How can I create ends_with function so it wont scan the email field but it will scan another field \"_email\" for reversed copy? (I can reverse the string, I just cant make it search another field after selecting ends_with from submenu)"},"comment":{"url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/comments/265075142","html_url":"https://github.com/mistic100/jQuery-QueryBuilder/issues/400#issuecomment-265075142","issue_url":"https://api.github.com/repos/mistic100/jQuery-QueryBuilder/issues/400","id":265075142,"user":{"login":"mistic100","id":41597,"avatar_url":"https://avatars.githubusercontent.com/u/41597?v=3","gravatar_id":"","url":"https://api.github.com/users/mistic100","html_url":"https://github.com/mistic100","followers_url":"https://api.github.com/users/mistic100/followers","following_url":"https://api.github.com/users/mistic100/following{/other_user}","gists_url":"https://api.github.com/users/mistic100/gists{/gist_id}","starred_url":"https://api.github.com/users/mistic100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mistic100/subscriptions","organizations_url":"https://api.github.com/users/mistic100/orgs","repos_url":"https://api.github.com/users/mistic100/repos","events_url":"https://api.github.com/users/mistic100/events{/privacy}","received_events_url":"https://api.github.com/users/mistic100/received_events","type":"User","site_admin":false},"created_at":"2016-12-06T06:52:42Z","updated_at":"2016-12-06T06:52:42Z","body":"That's something you will have to do outside the builder by traversing the json object and make the necessary changes."}}
{"actor":{"display_login":"mistic100"}}