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

Reindexing one index deletes all others #189

Open
reinhardt opened this issue Mar 2, 2018 · 2 comments
Open

Reindexing one index deletes all others #189

reinhardt opened this issue Mar 2, 2018 · 2 comments
Labels

Comments

@reinhardt
Copy link
Contributor

When I do a reindex and specify one index, e.g.

reindex(idxs=['getObjPositionInParent'])

then I end up with a record in solr that contains only the UID and this index:

<doc>
    <str name="UID">8f45b9ca86c44a6ca5ca8e4eeaa92a3d</str>
    <int name="getObjPositionInParent">4</int>
</doc>

#171 seems similar, but in my case the index exists and the value is non-empty.

It seems to me that the atomic_updates setting should not only disable update="set" but also cause all fields to be extracted and sent to solr.

I'm using Plone 4.3.7, solr 3.3.0 and collective.solr 5.0.3 (slightly patched).

@reinhardt reinhardt added the bug label Mar 2, 2018
@reinhardt
Copy link
Contributor Author

@tisto, do you have an opinion? Should all fields be extracted and updated when atomic updates are off, or am I misunderstanding something?

@reinhardt
Copy link
Contributor Author

reinhardt commented Oct 19, 2018

I just found another instance of this problem when adding a comment on an object. The comment related indexes are reindexed, and the rest of the indexes ends up empty.

Using p.a.discussion 2.2.5

https://github.com/plone/plone.app.discussion/blob/2.2.x/plone/app/discussion/comment.py#L241

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant