Es does not support groupby, so I want to see how SOLR is implemented.
Build Environment:
1) download tomcat7 and solr4.9 and decompress them;
2) configure the tomcat7 port and uriencoding (UTF-8 );
3) Copy SOLR \ Dist \ solr-4.9.0.war to Tomcat \ webapps and rename it SOLR. War;
4) Restart tomcat, SOLR. War automatic deployment, modify solrhome in webapps \ SOLR \ WEB-INF \ WEB. XML, as follows:
<env-entry> <env-entry-name>solr/home</env-entry-name> <env-entry-value>D:\solrHome\solr</env-entry-value> <env-entry-type>java.lang.String</env-entry-type> </env-entry>
Solrhome: D: \ solrhome \ SOLR
5) Create solrhome. The file structure is as follows:
Where contirb is copied from: solr-4.9.0 \ contrib; (optional)
SOLR \ core0, SOLR \ core1 copy from: solr-4.9.0 \ example \ multicore
SOLR. xml copied from: solr-4.9.0 \ example \ SOLR. xml
6) copy the solr-4.9.0 \ example \ Lib \ ext \ *. jar to Tomcat \ Lib
Copy the solr-4.9.0 \ example \ resources \ log4j. properties to Tomcat \ Lib
7) Restart Tomcat
8) Enter localhost: Port/SOLR/