Re: Assistance Needed with OpenCms and External SOLR Server Integration
Daniel Seidel via opencms-dev <[email protected]> Thu, 8 Feb 2024 08:36:05 +0100
| Newsgroups | gmane.comp.cms.opencms.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi Ramon, your steps are correct. I'd use Solr 8.11.1 as OpenCms 16. For the ICUCollationField you need to add some libs to Solr that are included, but not automatically loaded: You can, e.g., add them in the solrconfig.xml for the cores you add: <config> <lib dir="/opt/solr/dist/" regex=".*\.jar" /> <lib dir="/opt/solr/contrib/analysis-extras/lib/" regex=".*\.jar" /> <lib dir="/opt/solr/contrib/analysis-extras/lucene-libs/" regex=".*\.jar" /> ... </config> Best, Daniel. Am 07.02.24 um 16:22 schrieb Ramon Gavira Sáenz: > > Hello Daniel, > > I'm having issues trying to create the cores. > > I understand that I need to create one for each index, right? Solr > Offline and Solr Online, is that correct? Also, the configuration of > SOLR for those cores should be the one from OpenCms, correct? Is it > enough to just copy it? > > I've tried to do the above, but I think I need some plugin or library. > I'm getting this error: "ocms: > org.apache.solr.common.SolrException:org.apache.solr.common.SolrException: > Could not load conf for core ocms: Can't load schema > /opt/solr/server/solr/ocms/conf/schema.xml: Plugin init failure for > [schema.xml] fieldType "sort": Error loading class > 'solr.ICUCollationField'" > > My external SOLR is version 8.6.2. Is that correct? The versions of > OpenCms I'm working with are two, one version 14 and another version 16. > > Thanks for your help. > > Best regards. > > *De:*opencms-dev <[email protected]> *En nombre de > *Daniel Seidel via opencms-dev > *Enviado el:* lunes, 22 de enero de 2024 12:15 > *Para:* [email protected] > *CC:* Daniel Seidel <[email protected]> > *Asunto:* Re: [opencms-dev] Assistance Needed with OpenCms and > External SOLR Server Integration > > Hi Ramon, > > you can either configure an external solr server globally in the > opencms-search.xml by adding the "serverUrl" attribute to the <solr> > element, eg. > > <solr enabled="true" serverUrl="http://localhost:8983/solr" > <http://localhost:8983/solr>> > > Moreover, you can configure an external server for each Solr index > seperately. This is documented in > https://github.com/alkacon/opencms-core/blob/master/webapp/WEB-INF/config/opencms-search.xml > for the Solr Online index. > > A global external Solr server could be a good solution for a cluster > installation. You can configure the indexes on the workplace server as > usually and configure on the other servers with rebuild mode "none". > This will prevent the other servers from updating the external index, > shared by all servers. > > What you have to guarantee is, that the external Solr server has the > same core configuration as the internal one. I.e. the schema.xml has > to be used for the global external server as well. > > The "per index" external server configuration can be great for another > use case: If you want to index from different sources (not only > OpenCms), you can set up a specially configure index where OpenCms and > also other applications may index and search. > > What's currently necessary for both methods is that the server must > not be secured, so it has to be in a private network and not > accessible from outside, but from OpenCms. > > Best, Daniel. > > Am 22.01.24 um 11:38 schrieb Ramon Gavira Sáenz via opencms-dev: > > Hi Antonio. > > Thank you very much for your answer. > > Is your External Solr in a different machine than OpenCms? How do > you connect th “core” to OpenCms? How do you “point” to a > different Machine? > > Thanks in advance! > > Kind Regards! > > *De:*opencms-dev <[email protected]> > <mailto:[email protected]> *En nombre de *Antonio > Cordeddu via opencms-dev > *Enviado el:* miércoles, 17 de enero de 2024 9:42 > *Para:* Ramon Gavira Sáenz via opencms-dev > <[email protected]> <mailto:[email protected]> > *CC:* Antonio Cordeddu <[email protected]> > <mailto:[email protected]> > *Asunto:* Re: [opencms-dev] Assistance Needed with OpenCms and > External SOLR Server Integration > > Hello Ramon, > > I installed an external SOLR server for OpenCms 16 as a > text/prototype. > > About your questions: > > 1) Yes, it is possible to integrate the indices you use in the server > > 2) You can manage as many "core" as you want in Solr and connect > each one to a different index. > > Kind regards > > Antonio Cordeddu > > -- > > Logo > > _______________________________________________ > > Coranto informatica di Antonio Cordeddu > > Via Torricelli, 9 09047 Selargius (CA) - Italy > > [email protected] > > Skype: antonio.cordeddu > > https://www.coranto.it > > _______________________________________________ > > On 16/01/2024 17:00, Ramon Gavira Sáenz via opencms-dev wrote: > > Hello, > > Does anyone have experience using an external SOLR server in > OpenCms? We're working on a project that requires integrating > searches on a portal with an external SOLR server. Would it be > possible to integrate the indices we use in OpenCms into that > server? > > Additionally, do you know if it's possible to define two > different schemas for different indices within a SOLR instance? > > Also, if anyone has insights into the requirements for such a > SOLR server, that would be very helpful. > > Any hints or ideas would be greatly appreciated. > > Thank you very much! > > Ramón. > > > > > _______________________________________________ > > 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 > > https://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 > > https://lists.opencms.org/mailman/listinfo/opencms-dev > > -- > Kind Regards > Daniel. > ------------------- > Daniel Seidel > Alkacon Software GmbH & Co. KG - The OpenCms Experts > https://www.alkacon.com -http://www.opencms.org -- Kind Regards Daniel. ------------------- Daniel Seidel Alkacon Software GmbH & Co. KG - The OpenCms Experts https://www.alkacon.com -http://www.opencms.org _______________________________________________ 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 https://lists.opencms.org/mailman/listinfo/opencms-dev