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
Error on Script Based Sorting #2920
Comments
sorry, forgot the version. This happens on 0.90.RC2 and also on the last build I had for RC3. Didn't use to happen on 0.20 afaik, but didn't check it. |
This is not a shard issue, it also happens with one shard - and it also fails with 0.20. To me it looks like your MVEL script is not correct and cannot be parsed. Check the last part of your error message, not the first name of the exception you are seeing. |
I did check the message and the line where it happens in the code. The exception is thrown at |
you sample above is not working, thats why I was confused. You put single ticks inside of the curl query and confused the shell with that as you also used them for the whole json data.
|
From your response: {"took":269,"timed_out":false,"_shards":{"total":1,"successful":1,"failed":0}, |
I mean, more than 1 shard on 0.90. On 0.20 works fine |
Ok, I can reproduce it now, just do this:
And to make it even simpler, this leads to the exception as well:
Looks like we forgot to change a BytesRef to a string (might explain that it happens since we switched to lucene 4 with ES 0.90). So yeah, bug. Many many thanks for your time reporting and explaining! |
When used script based sorting on an index with mora than 1 shard, I get:
{"error":"ReduceSearchPhaseException[Failed to execute phase [query], [reduce] ]; nested: ClassCastException[java.lang.String cannot be cast to org.apache.lucene.util.BytesRef]; ","status":500}
Eg:
The text was updated successfully, but these errors were encountered: