{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/guides/issues/2","labels_url":"https://api.github.com/repos/emberjs/guides/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/guides/issues/2/comments","events_url":"https://api.github.com/repos/emberjs/guides/issues/2/events","html_url":"https://github.com/emberjs/guides/issues/2","id":57732750,"number":2,"title":"Swiftype Middleman Plugin","user":{"login":"trek","id":9736,"avatar_url":"https://avatars.githubusercontent.com/u/9736?v=3","gravatar_id":"","url":"https://api.github.com/users/trek","html_url":"https://github.com/trek","followers_url":"https://api.github.com/users/trek/followers","following_url":"https://api.github.com/users/trek/following{/other_user}","gists_url":"https://api.github.com/users/trek/gists{/gist_id}","starred_url":"https://api.github.com/users/trek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trek/subscriptions","organizations_url":"https://api.github.com/users/trek/orgs","repos_url":"https://api.github.com/users/trek/repos","events_url":"https://api.github.com/users/trek/events{/privacy}","received_events_url":"https://api.github.com/users/trek/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/guides/labels/help%20wanted","name":"help wanted","color":"159818"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2015-02-15T14:54:14Z","updated_at":"2015-02-26T20:00:25Z","closed_at":null,"body":"We need a Swiftype middleman plugin. https://github.com/LeonB/middleman-swiftype publishes directly to Switfype, but our needs are different because publication occurs as a separate step.\r\n\r\nA PR that addresses this issue will\r\n- [x] Fork https://github.com/LeonB/middleman-swiftype and create a PR _or_ create a new plugin (We'd prefer to update the existing plugin)\r\n- [ ] Provide a `swiftype:generate` command that outputs a `search.json` file\r\n- [ ] `search.json` file goes into the `build` directory on `middleman build` and `middleman server`\r\n- [ ] For every content page (e.g. not 404 page), generate an entry in `search.json` file \r\n\r\nThe `search.json` must include a `documents` key with an array of the following data:\r\n- [ ] a external_id that allows us to connect a search result back to a page\r\n- [ ] the following field structure \r\n```json\r\n{\r\n  \"fields\": [\r\n    {\"name\": \"title\", \"value\": \"The Page Title\", \"type\": \"string\"},\r\n    {\"name\": \"path\",  \"value\": \"/the/page/path\", \"type\": \"string\"},\r\n    {\"name\": \"body\",  \"value\": \"HTML content of the <p>Page</p>\", \"type\": \"text\"}\r\n  ]\r\n}\r\n```\r\n\r\nAdditionally:\r\n- [ ] tests must exist around all this behavior to avoid future breakage\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/guides/issues/comments/76257528","html_url":"https://github.com/emberjs/guides/issues/2#issuecomment-76257528","issue_url":"https://api.github.com/repos/emberjs/guides/issues/2","id":76257528,"user":{"login":"trek","id":9736,"avatar_url":"https://avatars.githubusercontent.com/u/9736?v=3","gravatar_id":"","url":"https://api.github.com/users/trek","html_url":"https://github.com/trek","followers_url":"https://api.github.com/users/trek/followers","following_url":"https://api.github.com/users/trek/following{/other_user}","gists_url":"https://api.github.com/users/trek/gists{/gist_id}","starred_url":"https://api.github.com/users/trek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trek/subscriptions","organizations_url":"https://api.github.com/users/trek/orgs","repos_url":"https://api.github.com/users/trek/repos","events_url":"https://api.github.com/users/trek/events{/privacy}","received_events_url":"https://api.github.com/users/trek/received_events","type":"User","site_admin":false},"created_at":"2015-02-26T20:00:24Z","updated_at":"2015-02-26T20:00:24Z","body":"@bsclifton turns out we also need the body to be `\"type\": \"string\"`"}}