[opencms-dev] Alpha 1 lucene and multi site

Tristan Tarrant ttarrant at etnoteam.it
Fri Oct 1 13:52:17 CEST 2004


On Fri, 2004-10-01 at 12:37 +0200, Hans van der Linden wrote:

> Hi
> 
> How is the lucene indexing / searching related to the multi site feature in opencms???.... For example when I use the index search
> in de administration everyting works fine as long as I have the 'sites/default/' site selected.. When I select '/' root the search
> results in an exception and when I select an other site the result found are always 0...


You need to add new index-sources to WEB-INF/config/opencms-search.xml

    <indexsource>
        <name>source1</name>
                                <indexer
class="org.opencms.search.CmsVfsIndexer" />
                                <resources>

<resource>/sites/default/</resource>
                                </resources>
                                <documenttypes-indexed>
                        <name>xmlpage</name>
                        <name>page</name>
                        <name>text</name>
                        <name>pdf</name>
                        <name>msword</name>
                        <name>msexcel</name>
                        <name>image</name>
                        <name>generic</name>
                                </documenttypes-indexed>
                        </indexsource>

Tristan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041001/47770409/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 2121 bytes
Desc: not available
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20041001/47770409/attachment.bin>


More information about the opencms-dev mailing list