Changes between Version 37 and Version 38 of apachesolr


Ignore:
Timestamp:
Jun 4, 2011, 3:13:34 PM (13 years ago)
Author:
Bart
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • apachesolr

    v37 v38  
    113113==== Create new Solr configuration ====
    114114
    115 Let's assume your site is called <sitename>.
     115Use {{{solr_addsite}}} to create a new Solr instance:
    116116
    117 Create a directory for the new Solr core
     117{{{solr_addsite <sitename>}}}
     118
     119The script will output the Solr admin path for the new site.
     120
     121===== Explanation of solr_addsite =====
     122
     123You can access the man page via
     124
     125{{{solr_addsite --man}}}
     126
     127The script creates a directory for the new Solr core
    118128{{{
    119129mkdir /usr/share/solr/<sitename>
    120130}}}
    121131
    122 Copy an existing Solr core
     132Then it copies an existing Solr core
    123133{{{
    124134cp -a /etc/solr/testsite /etc/solr/<sitename>
     
    127137If 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}}}.
    128138
    129 Change the symbolic link to the new configuration directory
     139And it changes the symbolic link to the new configuration directory
    130140{{{
    131141ln -sf /etc/solr/<sitename>/conf /usr/share/solr/<sitename>
    132142}}}
    133143
    134 Create a new data directory
     144Afterwards, the script creates a new data directory
    135145{{{
    136146mkdir /var/lib/solr/data/<sitename>
    137147}}}
    138148
    139 Change ownership to tomcat6
     149It changes ownership to tomcat6
    140150{{{
    141151chown -R tomcat6:tomcat6 /var/lib/solr/data
    142152}}}
    143153
    144 Change the symbolic link to the new data directory
     154And it changes the symbolic link to the new data directory
    145155{{{
    146156ln -sf /var/lib/solr/data/<sitename> /usr/share/solr/<sitename>/data
    147157}}}
    148158
    149 ==== Register new Solr core  ====
    150 
    151 Register a new core
     159Finally, the script registers a new core
    152160{{{
    153161<core name="<sitepath>" instanceDir="<sitename>" />