Skip to content

Separate indexes for separate sites

klavspc edited this page Mar 14, 2014 · 1 revision

In some situations you might want to index differently in different sites. (E.g. internal site vs external site). The simplest way of doing this is to maintain two different configuration folders:

  • WEB-INF/config/misc/custom/s4-intern
  • WEB-INF/config/misc/custom/s4-extern

In cbinfo-intern.xml you will write:

<!-- =================================== -->
<!-- S4 Index parameters                 -->
<!-- =================================== -->  
<param name="s4.config.dir">[cbinfo.misc.dir]/custom/s4-intern</param>

and in cbinfo-extern.xml you will write:

<!-- =================================== -->
<!-- S4 Index parameters                 -->
<!-- =================================== -->  
<param name="s4.config.dir">[cbinfo.misc.dir]/custom/s4-extern</param>