{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/246","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/246/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/246/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/246/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/246","id":94851435,"number":246,"title":"How to filter search and get result in context?","user":{"login":"diegodesouza","id":7575914,"avatar_url":"https://avatars.githubusercontent.com/u/7575914?v=3","gravatar_id":"","url":"https://api.github.com/users/diegodesouza","html_url":"https://github.com/diegodesouza","followers_url":"https://api.github.com/users/diegodesouza/followers","following_url":"https://api.github.com/users/diegodesouza/following{/other_user}","gists_url":"https://api.github.com/users/diegodesouza/gists{/gist_id}","starred_url":"https://api.github.com/users/diegodesouza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/diegodesouza/subscriptions","organizations_url":"https://api.github.com/users/diegodesouza/orgs","repos_url":"https://api.github.com/users/diegodesouza/repos","events_url":"https://api.github.com/users/diegodesouza/events{/privacy}","received_events_url":"https://api.github.com/users/diegodesouza/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-14T02:09:04Z","updated_at":"2015-07-14T18:45:31Z","closed_at":null,"body":"I have the following, my issue or question is to how to be able to search through my ```customers``` collection and filter out by the customerName but maintain the structure i already have for the customer(full document with all the fields displayed), where as with what I have so far, I get only the name of customer outside context(nor in the nav nor in the structured customers display)\r\n\r\n    Customers.initEasySearch(['customerName'], {\r\n      'limit': 5,\r\n     });\r\n\r\n    <template name=\"searchCustomers\">\r\n        {{> esInput index=\"customers\" placeholder=\"Search...\" }}\r\n        <ul>\r\n            {{#esEach index=\"customers\"}}\r\n                <li>{{customerName}}</li>\r\n            {{/esEach}}\r\n        </ul>\r\n    </template>\r\n\r\n    <div class=\"search\">{{> searchCustomers}}</div>\r\n\r\n![question](https://cloud.githubusercontent.com/assets/7575914/8664868/4e49d0c2-29ab-11e5-83b8-73e747cd889a.jpeg)\r\n\r\nin this case it would have to filter out with that query(sport) and have returned only 2 documents, but instead I got the names only. does this makes sense? Thanks for your patience\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/121338091","html_url":"https://github.com/matteodem/meteor-easy-search/issues/246#issuecomment-121338091","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/246","id":121338091,"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-07-14T18:45:31Z","updated_at":"2015-07-14T18:45:31Z","body":"That does not make a lot of sense to me. Are you missing data? Please give a clear description of your problem."}}