[opencms-dev] OpenCms 9: how do I get a SolrServer ?

Tobias Herrmann t.herrmann at alkacon.com
Fri Dec 20 16:29:19 CET 2013


Hi Siegfried,

because all queries executed directly on the SolrServer instance are not permission checked, the SolrServer/EmbeddedSolrServer is kept inside the search manager. There is no option to get the Solr servers instance from outside.

The entry points you have are:
1. The OpenCms Solr request handler, reachable at:
http://www.example.com/handleSolrSelect?<SOLR_QUERY> or
http://www.localhoste:8080/opencms/opencms/handleSolrSelect?<SOLR_QUERY>

2. Use one of the search methods
OpenCms.getSearchManager().getIndexSolr("Your Solr Index name")#search()

Greetings, Tobias


--

Alkacon Software GmbH - The OpenCms Experts

http://www.alkacon.com
http://www.opencms.org

Am 20.12.2013 14:47, schrieb Siegfried Ehret:
> Hi all,
>
> In OpenCms 8.5.x, I can retrieve the SolrServer with OpenCms.getSearchManager().registerSolrIndex.
>
> In OpenCms 9, this function returns nothing.
>
> How can get it ?
>
> Thanks.
>
> *Siegfried Ehret*
>
>
>
> _______________________________________________
> 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
>
>
>



More information about the opencms-dev mailing list