Creating a Solr instance is similar to creating a Memcached instance. Please follow the same steps as described on the Memcached page, but choose Solr instead of Memcached.
Once the Solr instance is created, expand its "Instance information" in the "Resources" tab in the same way as it is done for Memcached:
You will need the following values for copy/pasting them to Drupal's Search API configuration dialog in the next section:
In VSCode, open a new terminal and install the drupal/search_api_solr module and its dependencies by typing the following command:
composer require symfony/event-dispatcher:~3.4.0 solarium/solarium:^6.1 drupal/search_api_solr:^4.2
Setup Search API
Navigate to Drupal Admin Panel > Configuration > Search and metadata > Search API
3.1. Click + Add server.
3.2. In Backend options, choose Solr
3.3. In CONFIGURE SOLR BACKEND, enter the information below
- Solr Connector: Basic Auth
- Solr host: SOLR_HOST_GENERATED_BY_DEVPANEL
- Solr port: 8983
- Solr path: /
- Solr core: devpanel
- Username: devpanel
- Password: SOLR_PASSWORD_GENERATED_BY_DEVPANEL
3.4. Save and create your index
On step 3.3, you will need "Instance information" retrieved at the end of the previous section.