I am currently getting some Solr data I need from a core (found in Core selector drop down/comboBox list)
But every 24 hours, Hybris will take data to render products on site either from flip or flop core.
For instance, if today it gets data from Solr core 'flip', then tomorrow will take data from the 'flop' Solr core, and so on.
I want to determine (from the Java code if possible) outside of Hybris (by interrogating a Hybris web service or anything else) which one of the Solr core is currently used.
I found the answer on SAP forum.
It seems it needs a custom development on Hybris itself then an extra webservice to expose such an info.
The development can be started from a flexible search:
select {solrfacetsearchconfig.name},{solrindex.qualifier}
from {solrindex join solrfacetsearchconfig
on {solrindex.facetsearchconfig}={solrfacetsearchconfig.pk}}
where {solrindex.active}=true
And then expose the result above on a webservice which is accesible from the outside as I need.
The discussion is here: https://answers.sap.com/questions/12770851/solr-core-which-one-active-flip-or-flop-.html