Drupal Application with Solr



Search Results

With the Drupal plugin, you can declare the assets and databases to be imported and choose whether to build your Drupal application from the composer.lock file. Other options, such as redis, add configurations to your settings.php file to enable the on-board Redis server for Probo.CI applications.

In the example below, you can specify different versions of PHP and your database, as well as include Solr for use with Search API.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
type: lamp
php: 8.4
database: mysql:8.4
solr:
  name: drupal
  version: 8
  core_archive: solr8.zip
  core_folder: solr8
  compression: zip
assets:
  - mydb.sql.gz
  - solr8.zip

steps:

  - name: Provision Drupal
    plugin: Drupal
    composer: true
    redis: true
    database: mydb.sql.gz
    databaseGzipped: true
    clearCaches: true
    databaseUpdates: true
    subDirectory: web
    phpIniOptions:
      max_execution_time: 60
      upload_max_filesize: 25M
      post_max_size: 25M

  - name: Generate login link
    command: 'drush uli'

Setting Up A Solr Core From Config Sets

To configure your Solr core, you will need to create a zip file with your core config set files. Note that these must be in a folder. A configuration set could be laid out as follows:

- solr8
  - conf
    - elevate.xml
    - schema_extra_fields.xml
    - schema_extra_types.xml
    - schema.xml
    - solrconfig_extras.xml
    - solrconfig_index.xml
    - solrconfig_query.xml
    - solrconfig_requestdispatcher.xml
    - solrconfig.xml
    - solrcore.properties

Note: We have a pre-configured set of Solr cores for Solr 7, 8 and 9 available for download to make using Solr in Drupal seamless. To download these, click here

In our Drupal example, you would go to the appropriate folder in Drupal’s Search API Solr module (in jump-start) and rename the config-set folder to config. Remove the rest of the items in that folder and zip it up and upload it as an asset. For more information on Solr implementation, see the Solr Configuration documentation.

Get Started with Probo.CI

Want to Try Probo today?
Get Started Fast!.

When you sign up for a Probo.CI registration code, you will get a two week trial of the plan of your choosing. For more information on how to get started, click here .

LEARN MORE ABOUT PROBO.CI'S PRICING