{"action":"created","issue":{"url":"https://api.github.com/repos/bvaughn/js-search/issues/34","repository_url":"https://api.github.com/repos/bvaughn/js-search","labels_url":"https://api.github.com/repos/bvaughn/js-search/issues/34/labels{/name}","comments_url":"https://api.github.com/repos/bvaughn/js-search/issues/34/comments","events_url":"https://api.github.com/repos/bvaughn/js-search/issues/34/events","html_url":"https://github.com/bvaughn/js-search/issues/34","id":224003636,"number":34,"title":"Only ever getting one result...","user":{"login":"KyleAMathews","id":71047,"avatar_url":"https://avatars0.githubusercontent.com/u/71047?v=3","gravatar_id":"","url":"https://api.github.com/users/KyleAMathews","html_url":"https://github.com/KyleAMathews","followers_url":"https://api.github.com/users/KyleAMathews/followers","following_url":"https://api.github.com/users/KyleAMathews/following{/other_user}","gists_url":"https://api.github.com/users/KyleAMathews/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleAMathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleAMathews/subscriptions","organizations_url":"https://api.github.com/users/KyleAMathews/orgs","repos_url":"https://api.github.com/users/KyleAMathews/repos","events_url":"https://api.github.com/users/KyleAMathews/events{/privacy}","received_events_url":"https://api.github.com/users/KyleAMathews/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-04-25T02:41:30Z","updated_at":"2017-04-25T03:34:21Z","closed_at":null,"body":"No idea what I'm doing wrong. Please send help :-)\r\n\r\nOn 1.4.0.\r\n\r\nSetup looks like:\r\n\r\n```js\r\nconst JsSearch = require('js-search')\r\n\r\nconst search = new JsSearch.Search()\r\nsearch.addIndex('title')\r\nsearch.addIndex('body')\r\n\r\nsearch.addDocuments(posts) // There's about 2000 posts there.\r\n\r\n// Regardless of what I search for, it returns just one result.\r\n// The results are sensible and seem accurate and come from any of the documents\r\n// but there's always just one.\r\nsearch.search('a')"},"comment":{"url":"https://api.github.com/repos/bvaughn/js-search/issues/comments/296888056","html_url":"https://github.com/bvaughn/js-search/issues/34#issuecomment-296888056","issue_url":"https://api.github.com/repos/bvaughn/js-search/issues/34","id":296888056,"user":{"login":"KyleAMathews","id":71047,"avatar_url":"https://avatars0.githubusercontent.com/u/71047?v=3","gravatar_id":"","url":"https://api.github.com/users/KyleAMathews","html_url":"https://github.com/KyleAMathews","followers_url":"https://api.github.com/users/KyleAMathews/followers","following_url":"https://api.github.com/users/KyleAMathews/following{/other_user}","gists_url":"https://api.github.com/users/KyleAMathews/gists{/gist_id}","starred_url":"https://api.github.com/users/KyleAMathews/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KyleAMathews/subscriptions","organizations_url":"https://api.github.com/users/KyleAMathews/orgs","repos_url":"https://api.github.com/users/KyleAMathews/repos","events_url":"https://api.github.com/users/KyleAMathews/events{/privacy}","received_events_url":"https://api.github.com/users/KyleAMathews/received_events","type":"User","site_admin":false},"created_at":"2017-04-25T03:34:21Z","updated_at":"2017-04-25T03:34:21Z","body":"Ooo... it's working! Thanks! Super fast & nice.\r\n\r\nYeah, my data *has* an ID but I didn't think about how the search indexer would need an ID. Added that in and things are good.\r\n\r\nPerhaps js-search could just auto-add ids if one isn't added? Or do you support updating documents so need ids to overwrite old documents with new documents?\r\n\r\nPerhaps it should throw an error if you don't pass in the UID argument?"}}
{"actor":{"display_login":"KyleAMathews"}}