On a test environment have got Moodle 3.2.2 and SOLR working. When querying a Global Search within Moodle I see it correctly return only the courses the user could access.
However, if we wanted to make SOLR search results available to an external search, i.e. not run through Moodle ( so an external client would directly query the Moodle SOLR DB BUT the user WOULD be logged in via SSO) is that possible?
I note a general search of the SOLR DB directly will return all courses even if the user cant access them. I believe this is because the /search/index.php when accessing SOLR through Moodle is effectively piping the results to only show the courses the user could access. Is there a way to duplicate this with a direct query of SOLR?
One option would be to write some form of webservices plugin which would return the results effectively run via Moodle but i'm wondering if there is a far simpler way of doing this direct on the DB?
Many thanks,
Alex
(Moodle 3.2.2 CentOS, Maria DB, SOLR 6.4.2)