Solr 4 Study notes (part1)
Installation:Jetty:
Modify solr.xml
/solr
/webapps/solr.war
/etc/webdefault.xml
/temp
Copy solr.xml to /context
Copy jetty.xml, webdefault.xml,logging.properties from /etcto/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 makedecision on underlining implementation
Solr.SimpleFSDirectoryFactory
Does not scalewell with high number of threads
Solr.NIOFSDirectoryFactory
Scale well withmany threads, but does not work well on Windows
Solr.MMapDirectoryFactory
Good for 64 bitlinux systemif near realtimesearching is not needed
Solr.NRTCachingDirectoryFactory
Good for nearreal-time indexing and searching
Solr.RAMDirectoryFactory
Entirely inmemory and not support replication
Used for auto-completionor unit testing
页:
[1]