<p dir="auto">According Docs<br>
<a href="http://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet/" rel="nofollow">http://www.elasticsearch.org/guide/reference/api/search/facets/terms-facet/</a><br>
and code<br>
org.elasticsearch.search.facet.terms.TermsFacet</p>
<p dir="auto">ordering works for "count" and "term" in two directions.</p>
<p dir="auto">for "count", the tie breaker is a "normal" compareTo, which will compare the String Text of the term. However this will produce a reverse order on the term names. For "reverse_count", this is the opposite.</p>
<p dir="auto">so I end up with z:1, a:1, rather than a:1,z:1 which, to my expectation, more people would be able to use to find the matching entries.</p>
<p dir="auto">Additionally, the comparison is always case sensitive and cannot be changed.</p>
<p dir="auto">So in the end, It looks like I always will need to resort the entries myself. But this creates wasted effort. Right now, it is not possible to get the facets without any sorting.<br>
Elasticsearch will always sort the Facets, and then I will have to sort them again.</p>
<p dir="auto">Hi</p>
<p dir="auto">My apologies if I am doing something dumb but I have been trying to get this working for a while now.</p>
<p dir="auto">I have downloaded and unpacked elasticsearch 2.1 (ZIP from elastic.co) and get the error below. I have reinstalled Java 1.8 and cleaned up any old installations but still get the same error. Any suggestions? I have repeated the download and install of both ElasticSearch and Java a couple of times to be sure.</p>
<p dir="auto">JAVA_HOME set to C:\Progra~1\Java\jdk1.8.0_25</p>
<p dir="auto">Thanks in advance</p>
<p dir="auto">CM</p>
<p dir="auto">Microsoft Windows [Version 6.1.7601]<br>
Copyright (c) 2009 Microsoft Corporation.  All rights reserved.</p>
<p dir="auto">C:\WorkSpace\elasticsearch-2.1.0\bin&gt;java -version<br>
java version "1.8.0_25"<br>
Java(TM) SE Runtime Environment (build 1.8.0_25-b18)<br>
Java HotSpot(TM) 64-Bit Server VM (build 25.25-b02, mixed mode)</p>
<p dir="auto">C:\WorkSpace\elasticsearch-2.1.0\bin&gt;elasticsearch.bat<br>
Exception in thread "main" java.lang.UnsupportedClassVersionError: org/elasticsearch/bootstrap/Elasticsearch : Unsupported major.minor version 51.0<br>
at java.lang.ClassLoader.defineClass1(Native Method)<br>
at java.lang.ClassLoader.defineClassCond(ClassLoader.java:630)<br>
at java.lang.ClassLoader.defineClass(ClassLoader.java:614)<br>
at java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)<br>
at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)<br>
at java.net.URLClassLoader.access$000(URLClassLoader.java:58)<br>
at java.net.URLClassLoader$1.run(URLClassLoader.java:197)<br>
at java.security.AccessController.doPrivileged(Native Method)<br>
at java.net.URLClassLoader.findClass(URLClassLoader.java:190)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:305)<br>
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)<br>
at java.lang.ClassLoader.loadClass(ClassLoader.java:246)<br>
Could not find the main class: org.elasticsearch.bootstrap.Elasticsearch.  Program will exit.</p>