Changes between Version 37 and Version 38 of apachesolr
- Timestamp:
- Jun 4, 2011, 3:13:34 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
apachesolr
v37 v38 113 113 ==== Create new Solr configuration ==== 114 114 115 Let's assume your site is called <sitename>. 115 Use {{{solr_addsite}}} to create a new Solr instance: 116 116 117 Create a directory for the new Solr core 117 {{{solr_addsite <sitename>}}} 118 119 The script will output the Solr admin path for the new site. 120 121 ===== Explanation of solr_addsite ===== 122 123 You can access the man page via 124 125 {{{solr_addsite --man}}} 126 127 The script creates a directory for the new Solr core 118 128 {{{ 119 129 mkdir /usr/share/solr/<sitename> 120 130 }}} 121 131 122 Copyan existing Solr core132 Then it copies an existing Solr core 123 133 {{{ 124 134 cp -a /etc/solr/testsite /etc/solr/<sitename> … … 127 137 If you need a different configuration than the [http://drupal.org/project/apachesolr Apache Solr Drupal module] provides you probably have to change at least ''schema.xml'' and ''solrconfig.xml'' in {{{/etc/solr/<sitename>/conf}}}. 128 138 129 Changethe symbolic link to the new configuration directory139 And it changes the symbolic link to the new configuration directory 130 140 {{{ 131 141 ln -sf /etc/solr/<sitename>/conf /usr/share/solr/<sitename> 132 142 }}} 133 143 134 Createa new data directory144 Afterwards, the script creates a new data directory 135 145 {{{ 136 146 mkdir /var/lib/solr/data/<sitename> 137 147 }}} 138 148 139 Changeownership to tomcat6149 It changes ownership to tomcat6 140 150 {{{ 141 151 chown -R tomcat6:tomcat6 /var/lib/solr/data 142 152 }}} 143 153 144 Changethe symbolic link to the new data directory154 And it changes the symbolic link to the new data directory 145 155 {{{ 146 156 ln -sf /var/lib/solr/data/<sitename> /usr/share/solr/<sitename>/data 147 157 }}} 148 158 149 ==== Register new Solr core ==== 150 151 Register a new core 159 Finally, the script registers a new core 152 160 {{{ 153 161 <core name="<sitepath>" instanceDir="<sitename>" />