Non existing scripts execute - what is going on


(Adrian M) #1

My windows test machine where I have ES installed has restarted
automatically several times during the day. I was testing some custom
scripts in ES.

After restart I went back to continue my tests and realized that any script
I told ES to run it would do the same thing and always give me results.
Even when I used scripts which did not exist. Take this example:

{
"query": {
"custom_score": {
"query": {
"match_all": {}
},
"script": "sdgfhjgf",
"params": {
"site": "rgf"
},
"lang": "native"
}
}
}

This returns to me doc and with a score of 1!!! This script: sdgfhjgf,
doesn't even exist yet ES returns results from it! What is going on?

PS - I tried this same JSON query on a different ES cluster and as expected
I get an error.

--
You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/f2616992-1f30-4ef0-906a-d7dc3bd583f0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


(system) #2