This happened to me in 2.6.1 - So, in case anyone wanders into this error, I thought I\'d write the answer out.
This first command worked fine, but the second one d
Turns out I just had the brackets in the wrong place.. and it should have read.
//This works db.test.find( { $text: { $search: 'york' } }, { score: { $meta: 'textScore' } } );