[opencms-dev] Help for Lucene in Intranet / Portal

Corsin Camichel cocaman at gmail.com
Fri Feb 17 15:44:01 CET 2006


Hi Jorge

Try this:
for intranet
<index>
<name>IndexSearch_Intranet</name>
<rebuild>auto</rebuild>
<project>Online</project>
<locale>de</locale>
<sources>
<source>source_index_intranet</source>
</sources>
</index>

<indexsource>
<name>source_index_intranet</name>
<indexer class="org.opencms.search.CmsVfsIndexer" />
<resources>
<resource>/sites/intranet/</resource>
</resources>
<documenttypes-indexed>
       <name>xmlpage</name>
<name>xmlcontent</name>
        <name>page</name>
        <name>text</name>
        <name>pdf</name>
        <name>rtf</name>
        <name>html</name>
        <name>msword</name>
        <name>msexcel</name>
        <name>mspowerpoint</name>
        <name>image</name>
        <name>generic</name>
</documenttypes-indexed>
</indexsource>

In your search.jsp (or what ever):
<jsp:useBean id="search" scope="request" class="org.opencms.search.CmsSearch
">
search.setIndex("IndexSearch_Intranet");
</jsp:useBean>

So this search only lists results from /sites/intranet/ which are online
(published)

HTH

Regards
Corsin

PS: sorry for rich text format.. but that is much easier to read

--
Corsin Camichel
cocaman at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20060217/af488ead/attachment.htm>


More information about the opencms-dev mailing list