2012-04-19 21 views
2

我目前在我的導軌應用程序中使用mongodb。我使用mongoid作爲ODM,我使用sunspot_mongo。當我嘗試重新索引時,出現以下錯誤。使用導軌和mongodb重新索引solr時出錯

>rake sunspot:reindex 
rake aborted! 
undefined method 'find_in_batches' for Article:Class 

我面臨着同樣的問題,即使我使用的mongo_mapper代替mongoid

回答

2

用途:

rake sunspot:mongo:reindex 

工程。但是在mongoid太陽黑子中的reindexing API稍微破碎了。