[opencms-dev] Assistance Needed with OpenCms and External SOLR Server Integration
Ramon Gavira Sáenz
ramon.gavira at sagasoluciones.com
Mon Jan 22 14:37:24 CET 2024
It sounds pretty good!
Thanks!! I was “kinda lost” 😉
De: opencms-dev <opencms-dev-bounces at opencms.org> En nombre de Daniel Seidel via opencms-dev
Enviado el: lunes, 22 de enero de 2024 12:15
Para: opencms-dev at opencms.org
CC: Daniel Seidel <d.seidel at alkacon.com>
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 <opencms-dev-bounces at opencms.org><mailto:opencms-dev-bounces at opencms.org> 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 <opencms-dev at opencms.org><mailto:opencms-dev at opencms.org>
CC: Antonio Cordeddu <antoniocordeddu at coranto.it><mailto:antoniocordeddu at coranto.it>
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
antoniocordeddu at coranto.it<mailto:antoniocordeddu at coranto.it>
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20240122/228d24ed/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image001.jpg
Type: image/jpeg
Size: 13578 bytes
Desc: image001.jpg
URL: <http://lists.opencms.org/pipermail/opencms-dev/attachments/20240122/228d24ed/attachment.jpg>
More information about the opencms-dev
mailing list