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

WhateverIndex.reset! ignores specified nested fields mapping #77

Closed
constantm opened this issue Oct 15, 2014 · 2 comments
Closed

WhateverIndex.reset! ignores specified nested fields mapping #77

constantm opened this issue Oct 15, 2014 · 2 comments

Comments

@constantm
Copy link

I have a nested item specified in my mappings, eg:

field :user_qualifications, type: 'nested' do
        field :qualification_level, value: ->(o) { o.qualification.qualification_level }
end

When updating the index by saving the model and using update_index, it indexes as expected. When using WhateverIndex.reset! in Rails console, it ignores my mappings and indexes everything in the nested model, ie. id, created_at, updated_at, etc. instead of just indexing qualification_level

@pyromaniac
Copy link
Contributor

I'll check it, not sure when, but it would be awesome if you'll try to debug this.

@constantm
Copy link
Author

Cool, will see what I can do.

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