Giter Club home page Giter Club logo

ddev-drupal9-solr's Introduction

tests

What is this?

This repository allows you to quickly install Apache Solr for Drupal 9 into a Ddev project using just ddev get drud/ddev-drupal9-solr. It follows the Setting up Solr (single core) - the classic way recipe.

Installation on Drupal 9

  1. ddev get drud/ddev-drupal9-solr && ddev restart
  2. You may need to install the relevant Drupal requirements: ddev composer require drush/drush:* drupal/search_api_solr
  3. Enable the search_api_solr module either using the web interface or ddev drush en -y search_api_solr
  4. Create a search_api server at admin/config/search/search-api -> "Add server"
  5. Choose Solr as backend.
  6. Choose "Standard" as the Solr connector type and configure it:
    • Set "Server name" to anything you want. Maybe "ddev-solr-server".
    • Set "Backend" to "Solr"
    • Set "Solr host" to solr.
    • Set "Solr core" name to "dev".
    • Under "Advanced server configuration" set the "solr.install.dir" to /opt/solr.
  7. ddev restart

Explanation

This is the classic Drupal solr:8 recipe used for a long time by Drupal users and compatible with search_api_solr.

Interacting with Apache Solr

  • The Solr admin interface will be accessible at: http://<projectname>.ddev.site:8983/solr/ For example, if the project is named myproject the hostname will be: http://myproject.ddev.site:8983/solr/.
  • To access the Solr container from inside the web container use: http://solr:8983/solr/
  • A Solr core is automatically created by default with the name "dev"; it can be accessed (from inside the web container) at the URL: http://solr:8983/solr/dev or from the host at http://<projectname>.ddev.site:8983/solr/#/~cores/dev. You can obviously create other cores to meet your needs.

Caveats

  • This recipe won't work with versions of solr before solr:8, and Acquia and Pantheon.io hosting require versions from 3 to 7. You'll want to see the contributed recipes for older versions of solr.

ddev-drupal9-solr's People

Contributors

rfay avatar cspitzlay avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.