{"action":"created","issue":{"url":"https://api.github.com/repos/bripkens/lucene/issues/11","repository_url":"https://api.github.com/repos/bripkens/lucene","labels_url":"https://api.github.com/repos/bripkens/lucene/issues/11/labels{/name}","comments_url":"https://api.github.com/repos/bripkens/lucene/issues/11/comments","events_url":"https://api.github.com/repos/bripkens/lucene/issues/11/events","html_url":"https://github.com/bripkens/lucene/issues/11","id":275030699,"number":11,"title":"escaping tilde","user":{"login":"jakecadams","id":5033654,"avatar_url":"https://avatars2.githubusercontent.com/u/5033654?v=4","gravatar_id":"","url":"https://api.github.com/users/jakecadams","html_url":"https://github.com/jakecadams","followers_url":"https://api.github.com/users/jakecadams/followers","following_url":"https://api.github.com/users/jakecadams/following{/other_user}","gists_url":"https://api.github.com/users/jakecadams/gists{/gist_id}","starred_url":"https://api.github.com/users/jakecadams/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jakecadams/subscriptions","organizations_url":"https://api.github.com/users/jakecadams/orgs","repos_url":"https://api.github.com/users/jakecadams/repos","events_url":"https://api.github.com/users/jakecadams/events{/privacy}","received_events_url":"https://api.github.com/users/jakecadams/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-11-17T23:56:07Z","updated_at":"2017-11-21T06:38:35Z","closed_at":null,"author_association":"NONE","body":"https://runkit.com/embed/kx7k2fbprecw\r\n\r\n```\r\n> lucene.parse('foo~bar:\"hello\"')\r\n> {\r\n  \"left\": {\r\n    \"boost\": null,\r\n    \"field\": \"<implicit>\",\r\n    \"prefix\": null,\r\n    \"quoted\": false,\r\n    \"similarity\": 0.5,\r\n    \"term\": \"foo\"\r\n  },\r\n  \"operator\": \"<implicit>\",\r\n  \"right\": {\r\n    \"boost\": null,\r\n    \"field\": \"bar\",\r\n    \"prefix\": null,\r\n    \"proximity\": null,\r\n    \"quoted\": true,\r\n    \"term\": \"hello\"\r\n  }\r\n}\r\n```\r\nI'm having issues escaping the tilde on the field. It seems to work for some other special chars. Any suggestions here? "},"comment":{"url":"https://api.github.com/repos/bripkens/lucene/issues/comments/345931380","html_url":"https://github.com/bripkens/lucene/issues/11#issuecomment-345931380","issue_url":"https://api.github.com/repos/bripkens/lucene/issues/11","id":345931380,"user":{"login":"bripkens","id":596443,"avatar_url":"https://avatars2.githubusercontent.com/u/596443?v=4","gravatar_id":"","url":"https://api.github.com/users/bripkens","html_url":"https://github.com/bripkens","followers_url":"https://api.github.com/users/bripkens/followers","following_url":"https://api.github.com/users/bripkens/following{/other_user}","gists_url":"https://api.github.com/users/bripkens/gists{/gist_id}","starred_url":"https://api.github.com/users/bripkens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bripkens/subscriptions","organizations_url":"https://api.github.com/users/bripkens/orgs","repos_url":"https://api.github.com/users/bripkens/repos","events_url":"https://api.github.com/users/bripkens/events{/privacy}","received_events_url":"https://api.github.com/users/bripkens/received_events","type":"User","site_admin":false},"created_at":"2017-11-21T06:38:35Z","updated_at":"2017-11-21T06:38:35Z","author_association":"OWNER","body":"Which unfortunately is also misunderstood by this library :/\r\n\r\n```\r\n> require('.').parse('foo\\~bar:\"hello\"')\r\n{ left:\r\n   { field: '<implicit>',\r\n     term: 'foo',\r\n     quoted: false,\r\n     similarity: 0.5,\r\n     boost: null,\r\n     prefix: null },\r\n  operator: '<implicit>',\r\n  right:\r\n   { field: 'bar',\r\n     term: 'hello',\r\n     quoted: true,\r\n     proximity: null,\r\n     boost: null,\r\n     prefix: null } }\r\n> require('.').parse('foo\\\\~bar:\"hello\"')\r\n{ left:\r\n   { field: '<implicit>',\r\n     term: 'foo\\\\',\r\n     quoted: false,\r\n     similarity: 0.5,\r\n     boost: null,\r\n     prefix: null },\r\n  operator: '<implicit>',\r\n  right:\r\n   { field: 'bar',\r\n     term: 'hello',\r\n     quoted: true,\r\n     proximity: null,\r\n     boost: null,\r\n     prefix: null } }\r\n>\r\n```"}}
{"actor":{"display_login":"bripkens"}}