Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Database command 'mapreduce' failed: {"errmsg"=>"ns doesn't exist", "ok"=>0.0} #2

Open
ieq8 opened this issue Nov 11, 2010 · 2 comments

Comments

@ieq8
Copy link

ieq8 commented Nov 11, 2010

Hello! I use mongodb 1.6.3 + mongoid 2.0.0.beta.20
I have models:
User
include Mongoid::Document
embeds_many :nodes
Node
include Mongoid::Document
include Mongoid::Timestamps
include Mongoid::Taggable
embedded_in :user, :inverse_of => :nodes

And i see this error:
Database command 'mapreduce' failed: {"errmsg"=>"ns doesn't exist", "ok"=>0.0} when try:
User.first.nodes.create(:node_body => "first", :tags => "tag1, tag2, tag3")

Is this 'mongoid_taggable' bug or my fail?

@wilkerlucio
Copy link
Owner

I mean its not supporting embedded documents yeth... for now a simple solution will be disable the tag indexer. I will try to get some time to look on how to make it works, for now, do in your Node model:

include Mongoid::Taggable
disabled_tags_index!

it maybe work for now (but you will not have the indexed information, take a look on docs)

@ieq8
Copy link
Author

ieq8 commented Nov 11, 2010

I did so, but I'm interested in getting all user nodes tags. I will be glad if you will do it working. I have tried but no result for now.

coffeencoke referenced this issue in asynchrony/mongoid_taggable Oct 19, 2011
Hat tip to @coffeencoke on pull request ches#2 for bringing the need to
mind.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants