Hi Jorge<br><br>Try this:<br>for intranet<br><index><br> <name><span style="font-weight: bold; color: rgb(51, 51, 255);">IndexSearch_Intranet</span></name><br> <rebuild>auto</rebuild><br> <project>Online</project>
<br><locale><span style="font-weight: bold;">de</span></locale> <br> <sources><br> <source><span style="font-weight: bold; color: rgb(255, 0, 0);">source_index_intranet</span></source><br>
</sources> <br></index><br><br><indexsource><br> <name><span style="color: rgb(255, 0, 0); font-weight: bold;">source_index_intranet</span></name><br> <indexer class="org.opencms.search.CmsVfsIndexer
" /><br> <resources><br> <resource><span style="font-weight: bold; color: rgb(0, 102, 0);">/sites/intranet/</span></resource><br> </resources><br> <documenttypes-indexed><br> <name>xmlpage</name>
<br> <name>xmlcontent</name><br> <name>page</name><br> <name>text</name><br> <name>pdf</name><br> <name>rtf</name><br> <name>html</name>
<br> <name>msword</name><br> <name>msexcel</name><br> <name>mspowerpoint</name><br> <name>image</name><br> <name>generic</name>
<br> </documenttypes-indexed> <br></indexsource><br><br>In your search.jsp (or what ever):<br><jsp:useBean id="search" scope="request" class="org.opencms.search.CmsSearch">
<br>search.setIndex("<span style="font-weight: bold; color: rgb(51, 102, 255);">IndexSearch</span><span style="font-weight: bold; color: rgb(51, 102, 255);">_Intranet</span>");<br></jsp:useBean><br><br>So this search only lists results from /sites/intranet/ which are online (published)
<br><br>HTH<br><br>Regards<br>Corsin<br><br>PS: sorry for rich text format.. but that is much easier to read<br><br>-- <br>Corsin Camichel<br><a href="mailto:cocaman@gmail.com">cocaman@gmail.com</a><br>