MY QUESTION/ISSUE:
I cannot seem to find a way to get the site domain names (except the site on which the view is) to display/index which mean I cannot get my view to link to the nodes on the other sites?
If you need any information, I'll happily provide it.
I will commit to provide all my documentation (which is a bit more extensive than the steps below) if it might help anyone else.
BACKGROUND
We are using Drupal 8.8.1
Standard Solr 7.7.2 setup on a separate server.
Installed search_api_solr successfully with composer on Drupal multisite environment.
On two of these sites (each)
1. Uninstalled Database Search Module.
2. Installed Search API Solr, Search API Solr Admin, Search API Solr Search Defaults & enabled
3. Uninstalled Search Module.
On both of the sites (each) - Solr Search Server setup
Follow
https://www.drupal.org/docs/8/modules/search-api-solr/search-api-solr-ho... β
- Edit the server that was created by Search API Solr Search Defaults and enable.
Settings are left as default except for:
Server name: Solr Server
Backend: Solr
Solr Connector: Standard
Solr host: ph29.nwu.ac.za
Solr port: 8983
Solr core: multisite
Check - Retrieve result data from Solr
Uncheck - Retrieve results for this site only
Save and Enable
On one site (+Add index) - Solr Search Index setup
Settings are left as default except for:
Index name: multisite
Check: Content
Choose: Solr Server
Save & Add fields
- Rendered HTML output, URI,
- Title, Changed, Body, UUID
Save Changes & click on View tab for index and click on Index Now
(after setup use configuration synchronization to export & import this index on the other site)
Create the Search View:
Structure, Views, Add view
View name: Search on Multiple sites
VIEW SETTINGS Show: Index multisite
Select Create a Page (use defaults) and click on Save and edit
FIELDS Click on Add and select the following three:
- URI (indexed field) Index multisite
- Title (indexed field) Content datasource
- Body (indexed field) Content datasource
- Changed (indexed field) Content datasource
Add and configure fields
UNCHECK - "Use entity field rendering" at each of the four fields
AT THIS STAGE ONLY THE CONTENT OF THE CURRENT SITE ON WHICH I'M CREATING THE VIEW IS DISPLAYED.
In the View setup, ADVANCED, Query settings:
Select "Skip item access checks"
Select "Bypass access checks"
and click on apply.
NOW MY VIEW DISPLAYS FIELDS (content) FOR BOTH SITES. (Awesome - I got all the nodes for both sites to display!!!).
Example of the output for one of the indexed nodes:
/node/1
Library Page One
This is the library page one for tests for search. Information
2020-03-11