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

Collection returned from query has nil objects #93

Closed
synth opened this issue Oct 29, 2014 · 2 comments
Closed

Collection returned from query has nil objects #93

synth opened this issue Oct 29, 2014 · 2 comments

Comments

@synth
Copy link

synth commented Oct 29, 2014

After performing a query(either using term or multi_match), if I call to_a or just iterate over the scope, I noticed that there are nil objects in the collection. I'm not sure if this is a Chewy issue or ES issue. Apologies if this is an ES issue or a me not understanding ES issue. Thanks for your help!

@pyromaniac
Copy link
Contributor

This is possible only if you are using load method on scope to load AR objects. In other cases this looks like a bug. Could you expand your env a little bit?

@synth
Copy link
Author

synth commented Oct 30, 2014

Drat. Cannot repo now! :( I am using load though. I'll keep an eye out. Closing for now.

@synth synth closed this as completed Oct 30, 2014
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