<div dir="ltr"><div dir="ltr">Hi Theo,<div><br></div><div>we did this once with help of reflection. At the end the code could look like this:</div><div><br></div><div><div><font face="monospace, monospace"> CmsObject cmsObject;</font></div><div><font face="monospace, monospace"> String query;</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> CmsSolrIndex searchIndex = CmsSearchManager.getIndexSolr(cmsObject, null);</font></div><div><font face="monospace, monospace"> Field solr = CmsSolrIndex.class.getDeclaredField("m_solr");</font></div><div><font face="monospace, monospace"> solr.setAccessible(true);</font></div><div><font face="monospace, monospace"> SolrServer solrServer = (SolrServer) solr.get(searchIndex);</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> SolrQuery q = new SolrQuery(query);</font></div><div><font face="monospace, monospace"> q.setRequestHandler("/suggest");</font></div><div><font face="monospace, monospace"> q.addFilterQuery("expired:[NOW TO *]");</font></div><div><font face="monospace, monospace"><br></font></div><div><font face="monospace, monospace"> QueryResponse queryResponse = solrServer.query(q);</font></div></div><div><font face="monospace, monospace"><br></font></div><div><font face="arial, helvetica, sans-serif">Another solution would be to deploy a Solr Webapp and use the configuration / index provided by OpenCms. That way you could use Solr HTTP-API.</font></div><div><font face="arial, helvetica, sans-serif"><br></font></div><div><font face="arial, helvetica, sans-serif">Stephan</font></div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Am Mi., 23. Jan. 2019 um 17:40 Uhr schrieb Fabian Huschka <<a href="mailto:hfcoma@gmx.de">hfcoma@gmx.de</a>>:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div><div style="font-family:Verdana;font-size:12px"><div>Hi,</div>
<div> </div>
<div>I am rather new to OpenCms so I am not sure if OpenCms really can do this. I am running an 10.5.4 installation with the jsp-search-formatter for the Solr search.</div>
<div>I want to add an autocomplete/suggestion while typing in keywords however the Solr server is masqueraded by OpenCms so I have no idea how to reach the /suggest-URL for a configured suggester in solrconfig.xml</div>
<div>Any hints/pointers on how to achieve this?</div>
<div> </div>
<div>Many thanks,</div>
<div> </div>
<div>Theo</div>
<div> </div></div></div>
_______________________________________________<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" rel="noreferrer" target="_blank">http://lists.opencms.org/cgi-bin/mailman/listinfo/opencms-dev</a><br>
<br>
<br>
<br>
</blockquote></div>