<div dir="ltr"><div><div><div>Hi Kai,<br><br></div>Success with this code, xD... see (sorry comment with portuguese), shared and "viva o software livre":<br><br><%@page import="org.opencms.file.CmsObject"%><br><%@page import="org.opencms.search.fields.CmsSearchFieldConfiguration"%><br><%@ page session="true" %><br><%@ taglib prefix="cms" uri="<a href="http://www.opencms.org/taglib/cms">http://www.opencms.org/taglib/cms</a>"%><br><%@ taglib prefix="c" uri="<a href="http://java.sun.com/jsp/jstl/core">http://java.sun.com/jsp/jstl/core</a>" %><br><%@ taglib prefix="fn" uri="<a href="http://java.sun.com/jsp/jstl/functions">http://java.sun.com/jsp/jstl/functions</a>" %><br><%@ taglib prefix="fmt" uri="<a href="http://java.sun.com/jsp/jstl/fmt">http://java.sun.com/jsp/jstl/fmt</a>" %><br><%@page import="org.opencms.search.CmsSearchManager"%><br><%@page import="org.opencms.search.CmsSearchParameters"%><br><%@page import="org.opencms.main.OpenCms"%><br><%@page import="java.util.*"%><br><%@page import="java.util.ArrayList"%><br><%@page import="org.opencms.jsp.CmsJspActionElement"%><br><%@page import="org.opencms.search.CmsSearchResult"%><br><%@page import="org.opencms.search.*"%><br><%<br> CmsJspActionElement cms = new CmsJspActionElement(pageContext, request, response);<br> <br> //Criando o Objeto que será alternado via multisites<br> CmsObject obj = cms.getCmsObject();<br> //Seta o site do contexto atual para rollback<br> String siteRollBack = OpenCms.getSiteManager().getDefaultSite().getSiteRoot();<br> //Setando os parametros de busca<br> CmsSearchParameters parametros = new CmsSearchParameters();<br> //Criando uma busca geral<br> CmsSearch searchGeral = new CmsSearch();<br> //Setando o indice de busca geral<br> parametros.setIndex("Offline project EN (VFS)");<br> //Passando o parametro de consulta, no exemplo abaixo busca por todo o site<br> parametros.setParsedQuery("z* OR x* OR c* OR v* OR b* OR n* OR m* OR l* OR k* OR j* OR h* OR g* OR f* OR d* OR s* OR a* OR q* OR w* OR e* OR r* OR t* OR y* OR u* OR i* OR o* OR p*");<br> //Setando resultados por pagina<br> parametros.setMatchesPerPage(99999);<br> //Setando os parametros para a busca geral<br> searchGeral.setParameters(parametros);<br> //Preparando a lista de Resultados de Busca Geral<br> List<CmsSearchResult> listaResultado = null;<br> //Criando a lista de todos os multisites que serão iterados, dinamicamente<br> Set<String> listaSites = OpenCms.getSiteManager().getSiteRoots();<br> <br> //Realizando a iteração de todos os multisites existentes<br> Iterator i = listaSites.iterator();<br> while(i.hasNext()){<br> //Nesse momento é identificado um dos sites da lista existente<br> String multiSite = i.next().toString();<br> //Definindo o site raiz, referente a outra perspectiva<br> obj.getRequestContext().setSiteRoot(multiSite);<br> //Setando o objeto de busca geral com o objeto instanciado anteriormente<br> searchGeral.init(obj); <br> //Se for a primeira iteração, o objeto será null ao tentar adicionar a lista de resultados concatenando, portanto foi necessario adicionar o else<br> //para ser adicionado na primeira iteracao uma lista de resultado<br> if(listaResultado != null){<br> listaResultado.addAll(searchGeral.getSearchResult());<br> }else{<br> listaResultado = searchGeral.getSearchResult();<br> }<br> } <br> //Setando o site corrente de modo rollBack<br> obj.getRequestContext().setSiteRoot(siteRollBack);<br><br> //Exibindo o resultado da busca geral, que foi agregado de todos os multisites<br> for(Iterator iterator = listaResultado.iterator(); iterator.hasNext();)<br> {<br> CmsSearchResult result = (CmsSearchResult)iterator.next();<br> out.println(result.getPath() + "<br>");<br> }<br>%><br><br></div>Thank you for Fabian and Kai!<br><br></div>Success!<br><br>Deiverson<br><div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-10-06 14:30 GMT-03:00 Schliemann, Kai <span dir="ltr"><<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div link="blue" vlink="purple" lang="DE">
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">Hi Deiverson,<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">ok, too bad.
</span><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">I used that once in a project to distinguish between folders but within one site. I thought that would work with multi sites too.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Coming back to the index solution.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Is it possible for you to define three indices:<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><span>1.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Index siteA<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><span>2.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Index siteB<u></u><u></u></span></p>
<p><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><span>3.<span style="font:7.0pt "Times New Roman"">
</span></span></span><u></u><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Index global<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">If someone does a global search (e.g. by ticking a checkbox “global search”) you use that index. Otherwise you are using the site indices.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">I think, this would be the easiest solution, if suitable for you.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Another approach, which needs changes in data structure:<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Move all your news to the shared site and add categories to your news xsd. Categories would be “siteA”, “siteB”, “global”.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Filter your search results by categories.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Only works, if your just want to search news content.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">HTH<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Best regards<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Kai<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><span class=""><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"" lang="EN-US"> <a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]
<b>Im Auftrag von </b>Deiverson Si</span></span><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">lveira<br>
<b>Gesendet:</b> Montag, 6. Oktober 2014 18:45</span></p><div><div class="h5"><br>
<b>An:</b> The OpenCms mailing list<br>
<b>Betreff:</b> Re: [opencms-dev] How can search general in more perspective/multisite?<u></u><u></u></div></div><p></p><div><div class="h5">
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Kai,<u></u><u></u></p>
</div>
<p class="MsoNormal">I try <span style="font-size:10.0pt;font-family:Consolas;color:black;background:silver" lang="EN-US">
setSearchRoots </span>but problem with multisites, I dont see other perspective.=/<u></u><u></u></p>
</div>
<p class="MsoNormal">I can /news/, /faq/, but my search dont see /sites/siteb/othernews/ for exemplo, only one perspective.<u></u><u></u></p>
</div>
<p class="MsoNormal">I use setSearchRoots in jsp.<br>
<br>
Regards,<br>
<br>
Deiverson<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">2014-10-06 11:11 GMT-03:00 Schliemann, Kai <<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Hi Deiverson,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">for a global search you probably need this:</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> </span>
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US">/**</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * Sets the search root list.</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"><p></span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> *
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * Only resources that are sub</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US">-</span><span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US">resources
of one of the search roots</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * are included in the search result.</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"><p></span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> *
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * The search roots set here are used
</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"><i></span><span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US">in addition to</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"></i></span><span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US">
the current site root</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * of the user performing the search.</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"><p></span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> *
</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> * By default, the search roots contain only one entry with an empty string.</span><span style="font-size:10.0pt;font-family:Consolas;color:#7f7f9f" lang="EN-US"><p></span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> *</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> *
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7f9fbf" lang="EN-US">@param</span></b><span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> searchRoots the search roots to set</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:#3f5fbf" lang="EN-US"> */</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> </span>
<b><span style="font-size:10.0pt;font-family:Consolas;color:#7f0055" lang="EN-US">public</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7f0055" lang="EN-US">void</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">
<span style="background:silver">setSearchRoots</span>(String[] </span><span style="font-size:10.0pt;font-family:Consolas;color:#6a3e3e" lang="EN-US">searchRoots</span><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">) {</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> List<String>
</span><span style="font-size:10.0pt;font-family:Consolas;color:#6a3e3e" lang="EN-US">l</span><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> =
</span><b><span style="font-size:10.0pt;font-family:Consolas;color:#7f0055" lang="EN-US">new</span></b><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> ArrayList<String>(Arrays.<i>asList</i>(</span><span style="font-size:10.0pt;font-family:Consolas;color:#6a3e3e" lang="EN-US">searchRoots</span><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">));</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">
</span><span style="font-size:10.0pt;font-family:Consolas;color:#0000c0" lang="EN-US">m_parameters</span><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">.setRoots(</span><span style="font-size:10.0pt;font-family:Consolas;color:#6a3e3e" lang="EN-US">l</span><span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US">);</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> resetLastResult();</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas;color:black" lang="EN-US"> </span>
<span style="font-size:10.0pt;font-family:Consolas;color:black">}</span><u></u><u></u></p>
<p class="MsoNormal" style="text-autospace:none">
<span style="font-size:10.0pt;font-family:Consolas"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Best regards</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Kai</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]
<b>Im Auftrag von </b>Deiverson Silveira<br>
<b>Gesendet:</b> Montag, 6. Oktober 2014 14:55</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><b>An:</b> The OpenCms mailing list<br>
<b>Betreff:</b> Re: [opencms-dev] How can search general in more perspective/multisite?<u></u><u></u></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Kai,<br>
<span lang="EN"><br>
But this way, for a global search on all subsites I would have to instantiate each index and concatenate the results, right?</span><u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN">Regards,<br>
<br>
Deiverson</span><u></u><u></u></p>
</div>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2014-10-06 6:21 GMT-03:00 Schliemann, Kai <<a href="mailto:K.Schliemann@comundus.com" target="_blank">K.Schliemann@comundus.com</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Hi Deiverson,</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">if you are using Lucene, you can create an index for each site.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">And then set the index in your search JSP.</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">e.g. like
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">org.opencms.search.CmsSearch.setIndex(indexName);
</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">AFAIK OpenCms provides a property “search.index”. You could use that to read the index
you need. Or set it hard coded in your template, depending on the site you are in (not recommended).</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">HTH</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Best regards</span><u></u><u></u></p>
<p class="MsoNormal"><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d" lang="EN-US">Kai</span><u></u><u></u></p>
<p class="MsoNormal"><span lang="EN-US"> </span><u></u><u></u></p>
<p class="MsoNormal"><b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">Von:</span></b><span style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a> [mailto:<a href="mailto:opencms-dev-bounces@opencms.org" target="_blank">opencms-dev-bounces@opencms.org</a>]
<b>Im Auftrag von </b>Deiverson Silveira<br>
<b>Gesendet:</b> Freitag, 3. Oktober 2014 20:54<br>
<b>An:</b> The OpenCms mailing list<br>
<b>Betreff:</b> Re: [opencms-dev] How can search general in more perspective/multisite?</span><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi Fabian,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Thank you for attention.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">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.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I try set my object with project "/" but entry conflit in mysite because perspective:<br>
<br>
CmsObject cmsObject = cms.getCmsObject();<br>
CmsProject cmsproject = cmsObject.readProject("Offline");<br>
cmsObject.getRequestContext().setCurrentProject(cmsproject);<br>
cmsObject.getRequestContext().setSiteRoot("/");<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">and:<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">search.init(cmsproject);<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal">Regards,<br>
<br>
Deiverson<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<p class="MsoNormal">2014-10-01 8:57 GMT-03:00
<a href="mailto:fhsubscriptions@componio.net" target="_blank">fhsubscriptions@componio.net</a> <<a href="mailto:fhsubscriptions@componio.net" target="_blank">fhsubscriptions@componio.net</a>>:<u></u><u></u></p>
<div>
<div>
<p class="MsoNormal">Hi Deiverson,<br>
<br>
you can set the "parent sites" in the Solr query to enable search across different sites.
<br>
<br>
Regards,<br>
<br>
\Fabian<br>
<br>
Am 01.10.2014 13:24, schrieb Deiverson Silveira:<u></u><u></u></p>
</div>
<blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt">Hi List,<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have problem.<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I have multisites, and I have search general, I need search /sites/siteA/news/ and /sites/siteB/news/.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">I stay perspective /sites/siteA/, dont see /sites/siteB/<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">My search don´t work because perspective, how can solved this problem?<u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt">I need help,<u></u><u></u></p>
</div>
<p class="MsoNormal">Regards,<br>
<br>
Deiverson<br clear="all">
<u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"> <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i><u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><i>The Brazilian
</i><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><i>Official Provider OpenCms</i><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"> <u></u><u></u></p>
</div>
</div>
<pre>_______________________________________________<u></u><u></u></pre>
<pre>This mail is sent to you from the opencms-dev mailing list<u></u><u></u></pre>
<pre>To change your list options, or to unsubscribe from the list, please visit<u></u><u></u></pre>
<pre><a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><u></u><u></u></pre>
<pre> <u></u><u></u></pre>
<pre> <u></u><u></u></pre>
<pre> <u></u><u></u></pre>
</blockquote>
<p class="MsoNormal"> <u></u><u></u></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i><u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><i>The Brazilian </i><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><i>Official Provider OpenCms</i><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <u></u><u></u></p>
<div>
<div>
<div>
<p class="MsoNormal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i><u></u><u></u></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><i>The Brazilian </i><u></u><u></u></p>
<div>
<div>
<p class="MsoNormal"><i>Official Provider OpenCms</i><u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><br>
_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<u></u><u></u></p>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<br>
-- <i><u></u><u></u></i></p>
<div>
<div>
<div>
<p class="MsoNormal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a><u></u><u></u></i></p>
</div>
</div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><i>The Brazilian <u></u><u></u></i></p>
<div>
<div>
<p class="MsoNormal"><i>Official Provider OpenCms<u></u><u></u></i></p>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div></div></div>
</div>
<br>_______________________________________________<br>
This mail is sent to you from the opencms-dev mailing list<br>
To change your list options, or to unsubscribe from the list, please visit<br>
<a href="http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
<br></blockquote></div><br><br clear="all"><br>-- <br><i><div><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><a href="http://www.solutioncms.com" target="_blank">www.solutioncms.com</a></i></span></div></i></span></div><div><span style="font-style:normal"><i><span style="font-style:normal"><i><div><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important"><i>The Brazilian </i><span style="font-style:normal"><i><div style="display:inline!important"><span style="font-style:normal"><i><span style="font-style:normal"><i><div style="display:inline!important"><i>Official Provider OpenCms</i></div></i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i></span></i></span></div></i></span></div></i>
</div>