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

Index referenced documents #101

Closed
smilledge opened this issue Apr 25, 2014 · 2 comments
Closed

Index referenced documents #101

smilledge opened this issue Apr 25, 2014 · 2 comments

Comments

@smilledge
Copy link

I'm attempting to index referenced documents. (Without making them sub-documents)

For example;

var Author = mongoose.Schema({
    name: { type: String }
}):

var Page = mongoose.Schema({
    title: { type: String },
    author: { type: ObjectId, ref: 'Author' }
});

After getting indexed this becomes something like this;

"author": {
    _bsontype: "ObjectID",
    id: "SYæ�Sþ\n®àÊF$"
},

Is there anyway to index the full referenced object instead of just the ObjectId?

@taterbase
Copy link
Owner

This is a good question and I don't know the answer immediately but we'll look into it.

@taterbase
Copy link
Owner

This issue has been moved to mongoosastic#8

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