{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/239","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/239/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/239/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/239/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/239","id":93882048,"number":239,"title":"Nested Field query","user":{"login":"OminStyle","id":3143154,"avatar_url":"https://avatars.githubusercontent.com/u/3143154?v=3","gravatar_id":"","url":"https://api.github.com/users/OminStyle","html_url":"https://github.com/OminStyle","followers_url":"https://api.github.com/users/OminStyle/followers","following_url":"https://api.github.com/users/OminStyle/following{/other_user}","gists_url":"https://api.github.com/users/OminStyle/gists{/gist_id}","starred_url":"https://api.github.com/users/OminStyle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/OminStyle/subscriptions","organizations_url":"https://api.github.com/users/OminStyle/orgs","repos_url":"https://api.github.com/users/OminStyle/repos","events_url":"https://api.github.com/users/OminStyle/events{/privacy}","received_events_url":"https://api.github.com/users/OminStyle/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-08T20:24:40Z","updated_at":"2015-09-18T15:09:25Z","closed_at":"2015-07-09T04:51:18Z","body":"Thanks for offering such a great package. I got everything to work except for a simple query for a nested field. I'm trying to search for a ```location.country``` field but I'm unable to get this to work. I've tried\r\n```query.location = { country: this.props.country }``` and\r\n```\r\nquery.location = {};\r\nquery.location.country = this.props.country;\r\n```\r\nafter verifying that ```this.props.country``` returns the country (eg. 'USA') but no luck."},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/141478692","html_url":"https://github.com/matteodem/meteor-easy-search/issues/239#issuecomment-141478692","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/239","id":141478692,"user":{"login":"latitudehopper","id":6178463,"avatar_url":"https://avatars.githubusercontent.com/u/6178463?v=3","gravatar_id":"","url":"https://api.github.com/users/latitudehopper","html_url":"https://github.com/latitudehopper","followers_url":"https://api.github.com/users/latitudehopper/followers","following_url":"https://api.github.com/users/latitudehopper/following{/other_user}","gists_url":"https://api.github.com/users/latitudehopper/gists{/gist_id}","starred_url":"https://api.github.com/users/latitudehopper/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/latitudehopper/subscriptions","organizations_url":"https://api.github.com/users/latitudehopper/orgs","repos_url":"https://api.github.com/users/latitudehopper/repos","events_url":"https://api.github.com/users/latitudehopper/events{/privacy}","received_events_url":"https://api.github.com/users/latitudehopper/received_events","type":"User","site_admin":false},"created_at":"2015-09-18T15:09:25Z","updated_at":"2015-09-18T15:09:25Z","body":"I don't seem to be able to get that to work. I have done this, have I done it wrong?\r\n```javascript\r\n     'limit' : 20,\r\n    'use' : 'mongo-db',\r\n    'props' : {\r\n        'year' : null // demo purpose configuration, can be used in query\r\n    },\r\n    'query' : function (searchString, opts) {\r\n        var query = EasySearch.getSearcher(this.use).defaultQuery(this, searchString);\r\n\r\n        if (this.props.year != null) {\r\n            _.extend(query, {\"date.year\": this.props.year});\r\n        }\r\n\r\n        return query;\r\n    }\r\n```"}}