Skip to content

Use localhost not solr as Host #65

@gitressa

Description

@gitressa

Is there an existing issue for this?

  • I have searched the existing issues

Is your feature request related to a problem?

Problem

The value for Host is solr, but Solr on a production server normally uses the value localhost. This means that the user needs to change Host to solr to work with DDEV, and then on the server, they need to add something like this:`

$config['search_api.server.solr_server']['backend_config']['connector_config']['host'] = 'localhost';

Describe your solution

Use localhost as Host for Solr.

Describe alternatives

If it's not possible to set Host to localhost in DDEV, maybe we could automatically add an override in settings.ddev.php when the DDEV Solr add-on is installed, something like this?

$config['search_api.server.solr_server']['backend_config']['connector_config']['host'] = 'solr';

Additional context

See also Drupal issue Make Solr Host more likely to work with default settings, where I suggested an update in Search API Solr.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions