<p dir="auto">Build failure here: <a href="http://build-us-00.elastic.co/job/es_g1gc_master_metal/20291/" rel="nofollow">http://build-us-00.elastic.co/job/es_g1gc_master_metal/20291/</a></p>
<p dir="auto">If you call toString() of a python exception, jython tries to "render" it in a pythonisque way, but it seems to have localization problems, if the default locale uses a different number system.</p>
<p dir="auto">As a workaround we can remove the toString in the assert of PythonSecurityTests.assertFailure() - that will stop build failures, until we have time to dig into jython's problems here.</p>
<p dir="auto">We've written some pretty complex queries and have had success with sort, until we recently attempted to sort by multiple fields on the same results.  The following is only sorting on Field1.  The data has several hundred records return with unique numbers on each of these two fields. No matter how we sort Field2, the records return in the same order (sorted only by Field1) every time.</p>
<div class="highlight highlight-source-json notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="    &quot;sort&quot;: [
        {
            &quot;Field1&quot;: {
                &quot;order&quot;: &quot;desc&quot;
            }
        },
        {
            &quot;Field2&quot;: {
                &quot;order&quot;: &quot;asc&quot;
            }
        }
    ]"><pre class="notranslate">    <span class="pl-ent">"sort"</span>: [
        {
            <span class="pl-ent">"Field1"</span>: {
                <span class="pl-ent">"order"</span>: <span class="pl-s"><span class="pl-pds">"</span>desc<span class="pl-pds">"</span></span>
            }
        },
        {
            <span class="pl-ent">"Field2"</span>: {
                <span class="pl-ent">"order"</span>: <span class="pl-s"><span class="pl-pds">"</span>asc<span class="pl-pds">"</span></span>
            }
        }
    ]</pre></div>