{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/280","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/280/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/280/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/280","id":103262531,"number":280,"title":"Easy search with two lists of the same collection on the same page","user":{"login":"jasonmash","id":2655627,"avatar_url":"https://avatars.githubusercontent.com/u/2655627?v=3","gravatar_id":"","url":"https://api.github.com/users/jasonmash","html_url":"https://github.com/jasonmash","followers_url":"https://api.github.com/users/jasonmash/followers","following_url":"https://api.github.com/users/jasonmash/following{/other_user}","gists_url":"https://api.github.com/users/jasonmash/gists{/gist_id}","starred_url":"https://api.github.com/users/jasonmash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jasonmash/subscriptions","organizations_url":"https://api.github.com/users/jasonmash/orgs","repos_url":"https://api.github.com/users/jasonmash/repos","events_url":"https://api.github.com/users/jasonmash/events{/privacy}","received_events_url":"https://api.github.com/users/jasonmash/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-08-26T13:00:48Z","updated_at":"2015-10-06T20:04:24Z","closed_at":null,"body":"I am trying to use easy search twice on two lists of the same collection on the same page - each list has its own id and search index. I am using mongo-db to do the searching. The problem I am having is that each entity within the collection is shown only on one of the two lists – never both. The search indices are setup as shown below:\r\n\r\n```javascript\r\nEasySearch.createSearchIndex('list1', {\r\n  field: 'name',\r\n  collection: Entities,\r\n  use: 'mongo-db',\r\n  query: function(searchString, opts) {\r\n    return EasySearch.getSearcher(this.use).defaultQuery(this, searchString);\r\n  }\r\n});\r\n\r\nEasySearch.createSearchIndex('list2', {\r\n  field: 'name',\r\n  collection: Entities,\r\n  use: 'mongo-db',\r\n  query: function(searchString, opts) {\r\n    return EasySearch.getSearcher(this.use).defaultQuery(this, searchString);\r\n  }\r\n});\r\n\r\n```\r\nI suspect this issue is caused by each entity within esSearchResults being associated with one _index value only. I’m not sure if this issue is to do with my code or an issue in the package – would you be able to confirm?\r\n"},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/145981932","html_url":"https://github.com/matteodem/meteor-easy-search/issues/280#issuecomment-145981932","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/280","id":145981932,"user":{"login":"matteodem","id":1301147,"avatar_url":"https://avatars.githubusercontent.com/u/1301147?v=3","gravatar_id":"","url":"https://api.github.com/users/matteodem","html_url":"https://github.com/matteodem","followers_url":"https://api.github.com/users/matteodem/followers","following_url":"https://api.github.com/users/matteodem/following{/other_user}","gists_url":"https://api.github.com/users/matteodem/gists{/gist_id}","starred_url":"https://api.github.com/users/matteodem/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matteodem/subscriptions","organizations_url":"https://api.github.com/users/matteodem/orgs","repos_url":"https://api.github.com/users/matteodem/repos","events_url":"https://api.github.com/users/matteodem/events{/privacy}","received_events_url":"https://api.github.com/users/matteodem/received_events","type":"User","site_admin":false},"created_at":"2015-10-06T20:04:23Z","updated_at":"2015-10-06T20:04:23Z","body":"After quite some time I was finally able to have a look at it, I'll try this use case with v2 and fix it in there."}}