[opencms-dev] restricting search with org.opencms.search.CmsSearch.setSearchRoot - should this method work?

Detlef Beyer d.beyer at crash.de
Wed May 2 10:31:11 CEST 2007


Hi,

just use the admin tool to build a new search index that's limited to the resources you like and use this index in your search page.

Detlef

>I am trying to build a search page which restricts the search to one folder and noticed that there is method  org.opencms.search.CmsSearch.setSearchRoot in order to achieve this.
> 
>However, after setting the method nothing seems to change and I still get results also from the site root. Can anyone confirm if this method should work?
> 
>Thanks,
> 
>Olli
> 
> 
> 
>
>
>_______________________________________________
>This mail is sent to you from the opencms-dev mailing list
>To change your list options, or to unsubscribe from the list, please visit
>http://lists.opencms.org/mailman/listinfo/opencms-dev




More information about the opencms-dev mailing list