{"action":"created","issue":{"url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/143","labels_url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/143/labels{/name}","comments_url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/143/comments","events_url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/143/events","html_url":"https://github.com/fergiemcdowall/search-index/issues/143","id":99360445,"number":143,"title":"Encode key using Bytewise","user":{"login":"cshum","id":293790,"avatar_url":"https://avatars.githubusercontent.com/u/293790?v=3","gravatar_id":"","url":"https://api.github.com/users/cshum","html_url":"https://github.com/cshum","followers_url":"https://api.github.com/users/cshum/followers","following_url":"https://api.github.com/users/cshum/following{/other_user}","gists_url":"https://api.github.com/users/cshum/gists{/gist_id}","starred_url":"https://api.github.com/users/cshum/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cshum/subscriptions","organizations_url":"https://api.github.com/users/cshum/orgs","repos_url":"https://api.github.com/users/cshum/repos","events_url":"https://api.github.com/users/cshum/events{/privacy}","received_events_url":"https://api.github.com/users/cshum/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/fergiemcdowall/search-index/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-06T05:44:04Z","updated_at":"2015-08-23T19:41:17Z","closed_at":"2015-08-23T19:41:17Z","body":"[Bytewise](https://github.com/deanlandolt/bytewise) supports Array prefix, string and numeric encoding such as\r\n```js\r\nencode(['foo', 45]) < encode(['foo', 123]) < encode(['foo', Infinity])\r\nencode(['add']) <  encode(['add', 'item', 789]) < encode(['add', '~'])\r\n```\r\nWhich simplifies much of the custom string prefix or left-padding of numbers e.g.\r\n```js\r\n'DELETE-DOCUMENT~' + docToBeIndexed.id[0].field + '~' + searchableField\r\nsearchableField + '~' + vecField[0] + '~' + facet + '~' + docFacet\r\n```"},"comment":{"url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/comments/133909390","html_url":"https://github.com/fergiemcdowall/search-index/issues/143#issuecomment-133909390","issue_url":"https://api.github.com/repos/fergiemcdowall/search-index/issues/143","id":133909390,"user":{"login":"fergiemcdowall","id":1122333,"avatar_url":"https://avatars.githubusercontent.com/u/1122333?v=3","gravatar_id":"","url":"https://api.github.com/users/fergiemcdowall","html_url":"https://github.com/fergiemcdowall","followers_url":"https://api.github.com/users/fergiemcdowall/followers","following_url":"https://api.github.com/users/fergiemcdowall/following{/other_user}","gists_url":"https://api.github.com/users/fergiemcdowall/gists{/gist_id}","starred_url":"https://api.github.com/users/fergiemcdowall/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fergiemcdowall/subscriptions","organizations_url":"https://api.github.com/users/fergiemcdowall/orgs","repos_url":"https://api.github.com/users/fergiemcdowall/repos","events_url":"https://api.github.com/users/fergiemcdowall/events{/privacy}","received_events_url":"https://api.github.com/users/fergiemcdowall/received_events","type":"User","site_admin":false},"created_at":"2015-08-23T19:41:17Z","updated_at":"2015-08-23T19:41:17Z","body":"Have had a good look at use cases. The most recent version of `search-index` doesn't require numeric sorting in the keys. For the time being I am going to put this on ice. If anybody sees a place for bytewise in `search-index`, then submit a PR and we will be super-happy!"}}