[opencms-dev] How can search general in more perspective/multisite?

Deiverson Silveira deiverson at solutioncms.com
Fri Oct 3 20:53:40 CEST 2014


Hi Fabian,

Thank you for attention.

I don't use Solr, you know how can make this using Lucene? I use
traditional Lucene, I think this case is already a good opportunity to use
Solr and leave the Lucene.

I try set my object with project "/" but entry conflit in mysite because
perspective:

        CmsObject cmsObject = cms.getCmsObject();
        CmsProject cmsproject = cmsObject.readProject("Offline");
        cmsObject.getRequestContext().setCurrentProject(cmsproject);
        cmsObject.getRequestContext().setSiteRoot("/");
and:
search.init(cmsproject);

Regards,

Deiverson

2014-10-01 8:57 GMT-03:00 fhsubscriptions at componio.net <
fhsubscriptions at componio.net>:

>  Hi Deiverson,
>
> you can set the "parent sites" in the Solr query to enable search across
> different sites.
>
> Regards,
>
> \Fabian
>
> Am 01.10.2014 13:24, schrieb Deiverson Silveira:
>
>    Hi List,
>
>  I have problem.
>
>  I have multisites, and I have search general, I need search
> /sites/siteA/news/ and /sites/siteB/news/.
>
>  I stay perspective /sites/siteA/, dont see /sites/siteB/
>
>  My search donĀ“t work because perspective, how can solved this problem?
>
>  I need help,
>
>  Regards,
>
> Deiverson
>
>
> --
> * www.solutioncms.com <http://www.solutioncms.com> The Brazilian  Official
> Provider OpenCms *
>
>
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visithttp://lists.opencms.org/cgi-bin/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/cgi-bin/mailman/listinfo/opencms-dev
>
>
>
>
>


-- 
*www.solutioncms.com <http://www.solutioncms.com>The Brazilian Official
Provider OpenCms*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://webmail.opencms.org/pipermail/opencms-dev/attachments/20141003/9d8f0ab9/attachment.htm>


More information about the opencms-dev mailing list