christopher-fuller / mongodb_fulltext_search

A gem that adds fulltext search capability to Mongoid or MongoMapper documents. The MongoDB aggregation framework is utilized to perform searches quickly and efficiently.
MIT License
5 stars 3 forks source link

errmsg: 'exception: field inclusion is not allowed inside of $expressions' #2

Open waynehoover opened 12 years ago

waynehoover commented 12 years ago

$ mongod -version

db version v2.2.0, pdfile version 4.5

$ rails -v

Rails 3.2.7

Model: class Collection include MongoMapper::Document include MongoMapper::FullTextSearch ... key :details fulltext_search_in :details end

irb: Collection.fulltext_search "wind"

Mongo::OperationFailure: Database command 'aggregate' failed: (errmsg: 'exception: field inclusion is not allowed inside of $expressions'; code: '16420'; ok: '0.0').

regdog commented 11 years ago

Same issue occured with mongoid, "failed with error 16420: "exception: field inclusion is not allowed inside of $expressions"

$mongod -version db version v2.4.5