Installation:

Jetty:

Modify solr.xml

        

          http://www.eclipse.org/jetty/configure.dtd>

         

                      /solr

                      /webapps/solr.war

                      /etc/webdefault.xml

                     /temp

                  

     Copy solr.xml to /context

 

Copy jetty.xml, webdefault.xml,  logging.properties from /etc  to  /etc

 

Copy schema.xml, solrconfig.xml, solr.xml etc to directory

 

For multi-core configuration

In solr.xml:

    

          

Copy schema.xml, solrconfig.xml to //conf

 

Modify /etc/default/jetty file, add  -Dsolr.solr.home=xxx

 

Tomcat:

Change tomcat server.xml: connector’s url encoding toUTF-8

 

Create solr.xml in $TOMCAT_HOME/conf/Catalina/localhost

          

 

Copy schema.xml, solrconfig.xml, solr.xml etc to directory

 

For multi-core configuration

In solr.xml:

    

        

Copy schema.xml, solrconfig.xml to //conf

 

        

Solr cloud requirement:

    schema.xml

_version_  field

 

    solrconfig.xml

solr.ReplicationHandler

 

solr.RealTimeGetHandler

    

           true

    ${solr.data.dir:}

 

solr.xml

 

Directory Implementation:

             

             

Solr.StandardDirectoryFactory

Solr make  decision on underlining implementation

Solr.SimpleFSDirectoryFactory

Does not scale  well with high number of threads

Solr.NIOFSDirectoryFactory

Scale well with  many threads, but does not work well on Windows

Solr.MMapDirectoryFactory

Good for 64 bit  linux system  if near realtime  searching is not needed

Solr.NRTCachingDirectoryFactory

Good for near  real-time indexing and searching

Solr.RAMDirectoryFactory

Entirely in  memory and not support replication

Used for auto-completion  or unit testing