You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a model person and I want to import all published people. All not yet published people will be rejected from the batch in the preprocess. So it is possible, that all items will be removed from the batch and I am sending an empty batch. That will throw the following exception:
Elasticsearch::Transport::Transport::Errors::BadRequest: [400] {"error":{"root_cause":[{"type":"parse_exception","reason":"Failed to derive xcontent"}],"type":"parse_exception","reason":"Failed to derive xcontent"},"status":400}
I think the behavior should be like import empty scoped data.
The text was updated successfully, but these errors were encountered:
RonaldKlaus
changed the title
Scope#import with options[:preprocess] throws exception when preprocessed data will be emptyScope#import with options[:preprocess] throws exception when preprocessed data returns empty
Jun 13, 2017
timbleck
pushed a commit
to moviepilot-de/elasticsearch-rails
that referenced
this issue
Jun 15, 2017
Hej!
I have a model
person
and I want to import allpublished
people. All not yet published people will be rejected from thebatch
in thepreprocess
. So it is possible, that all items will be removed from thebatch
and I am sending an emptybatch
. That will throw the following exception:I think the behavior should be like
import
empty scoped data.The text was updated successfully, but these errors were encountered: