{"action":"created","issue":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/510","repository_url":"https://api.github.com/repos/matteodem/meteor-easy-search","labels_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/510/labels{/name}","comments_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/510/comments","events_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/510/events","html_url":"https://github.com/matteodem/meteor-easy-search/issues/510","id":161052721,"number":510,"title":"Aggregation using $and behaves like $or","user":{"login":"babenzele","id":3578574,"avatar_url":"https://avatars.githubusercontent.com/u/3578574?v=3","gravatar_id":"","url":"https://api.github.com/users/babenzele","html_url":"https://github.com/babenzele","followers_url":"https://api.github.com/users/babenzele/followers","following_url":"https://api.github.com/users/babenzele/following{/other_user}","gists_url":"https://api.github.com/users/babenzele/gists{/gist_id}","starred_url":"https://api.github.com/users/babenzele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babenzele/subscriptions","organizations_url":"https://api.github.com/users/babenzele/orgs","repos_url":"https://api.github.com/users/babenzele/repos","events_url":"https://api.github.com/users/babenzele/events{/privacy}","received_events_url":"https://api.github.com/users/babenzele/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-06-19T02:12:06Z","updated_at":"2016-06-20T16:16:44Z","closed_at":"2016-06-20T07:11:58Z","body":"Using the `MongoTextIndex` engine, specifying `aggregation: '$and'` does not seem to change away from default `$or` search behavior. \r\n\r\n```\r\nexport const AssetsIndex = new EasySearch.Index({\r\n  collection: Assets,\r\n  fields: ['barcode', 'modelName', 'modelNumber', 'categoryName', 'manufacturerName', 'locationName'],\r\n  defaultSearchOptions: { limit: 20 },\r\n  engine: new EasySearch.MongoTextIndex({\r\n    aggregation: '$and',\r\n    sort() {\r\n      return { createdAt: -1 };\r\n    }\r\n  })\r\n});\r\n```"},"comment":{"url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/comments/227191295","html_url":"https://github.com/matteodem/meteor-easy-search/issues/510#issuecomment-227191295","issue_url":"https://api.github.com/repos/matteodem/meteor-easy-search/issues/510","id":227191295,"user":{"login":"babenzele","id":3578574,"avatar_url":"https://avatars.githubusercontent.com/u/3578574?v=3","gravatar_id":"","url":"https://api.github.com/users/babenzele","html_url":"https://github.com/babenzele","followers_url":"https://api.github.com/users/babenzele/followers","following_url":"https://api.github.com/users/babenzele/following{/other_user}","gists_url":"https://api.github.com/users/babenzele/gists{/gist_id}","starred_url":"https://api.github.com/users/babenzele/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/babenzele/subscriptions","organizations_url":"https://api.github.com/users/babenzele/orgs","repos_url":"https://api.github.com/users/babenzele/repos","events_url":"https://api.github.com/users/babenzele/events{/privacy}","received_events_url":"https://api.github.com/users/babenzele/received_events","type":"User","site_admin":false},"created_at":"2016-06-20T16:16:44Z","updated_at":"2016-06-20T16:16:44Z","body":"How does one aggregate using `MongoDB` engine? Zero results are returned when I apply `aggregation: '$and'`."}}
{"actor":{"display_login":"babenzele"}}