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

Alexander Kandzior alex at opencms.org
Wed May 2 15:13:39 CEST 2007


Olli,

org.opencms.search.CmsSearch.setSearchRoot should work as expected. We use
it in several projects.

Kind Regards,
Alex.
 
-------------------
Alexander Kandzior
                                                               
Alkacon Software GmbH  - The OpenCms Experts                  
http://www.alkacon.com - http://www.opencms.org                 

> -----Original Message-----
> From: opencms-dev-bounces at opencms.org 
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Olli Aro
> Sent: Wednesday, May 02, 2007 1:51 PM
> To: 'The OpenCms mailing list'
> Subject: RE: [opencms-dev] restricting search 
> withorg.opencms.search.CmsSearch.setSearchRoot - should this 
> method work?
> 
> Yes I found this solution from the mailing list. However, as 
> far as the
> org.opencms.search.CmsSearch.setSearchRoot function is 
> concerned, it that
> not working then?
> 
> Olli
> 
> -----Original Message-----
> From: opencms-dev-bounces at opencms.org
> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of Detlef Beyer
> Sent: 02 May 2007 09:31
> To: The OpenCms mailing list
> Subject: Re: [opencms-dev] restricting search with
> org.opencms.search.CmsSearch.setSearchRoot - should this method work?
> 
> 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
> 
> 
> _______________________________________________
> 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
> 
> 
> _______________________________________________
> 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