<div>Hi Andras,</div>
<div> </div>
<div>Thanks very much for your prompt response.</div>
<div> </div>
<div>I already customised my search engine (in the opencms-search.xml) to point to only a specific search path in my application (e.g. /sites/myapp/) so that there is only one indexsource running. Here is the customisation snippet:
</div>
<div> </div>
<div><indexsource><br> <name>myapp</name><br> <indexer class="org.opencms.search.CmsVfsIndexer" /><br> <resources><br> <resource>/sites/myapp/content/</resource><br> </resources>
<br> <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> </div>
<div>Here I am only indexing on files stored in /sites/myapp/content folder of myapp application. The indexing works fine and I can do searches on this entire index source. What I am trying to achieve next is to further limit the scope of my search to only a selected list of files (given the file names) in this folder. Would the method setSearchRoots() solve this? Does the parameter searchRoots of this method mean an array of file names?
</div>
<div> </div>
<div>Can you elaborate a bit more from your suggestion? Thanks.</div>
<div> </div>
<div>Rgds,</div>
<div>David.</div>
<div> </div>
<div><span class="gmail_quote">On 7/13/05, <b class="gmail_sendername">Andras Balogh</b> <<a href="mailto:abalogh@gmail.com">abalogh@gmail.com</a>> wrote:</span> </div>
<blockquote class="gmail_quote" style="PADDING-LEFT: 1ex; MARGIN: 0px 0px 0px 0.8ex; BORDER-LEFT: #ccc 1px solid">Hello David,<br><br> You can customize the search in the file<br>WEB-INF/config/opencms-search.xml.<br>You can configure here multiple indexes and multiple sources.
<br> After that check the class org.opencms.search.CmsSearch methods:<br><br>setIndex(String indexName)<br>setSearchRoots(String[] searchRoots)<br><br>Best regards,<br>Andras<br><br></blockquote>