Skip to content

Local DDEV development environment for stabilizing Elasticsearch connector for Drupal drupal.org/project/elasticsearch_connector

Notifications You must be signed in to change notification settings

FameHelsinki/drupal-elasticsearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

author
sokru
Aug 3, 2024
5775549 · Aug 3, 2024

History

40 Commits
Jan 13, 2022
Jan 6, 2023
Aug 3, 2024
Mar 12, 2021
Jan 6, 2023
Mar 9, 2021
Aug 12, 2021
Mar 9, 2021
Mar 12, 2021
Jan 6, 2023
Aug 3, 2024
Jan 6, 2023
Mar 12, 2021

Repository files navigation

Installation

For local development use DDEV

Requirements on local machine:

ddev composer install
ddev start

Now you should have Elasticsearch and Drupal ready to start.

Quick-start

Import site, Search API and Elasticsearch configurations by running Drush command:

ddev drush @es site-install --existing-config --account-pass=123 -y

Then login at https://drupal-elasticsearch.ddev.site with username admin and password 123

Elasticsearch

Make sure the Elasticsearch service is up and running by curl http://drupal-elasticsearch.ddev.site:9200

curl http://drupal-elasticsearch.ddev.site:9200/elasticsearch_index_db_elasticsearch/_search\?pretty

Tools to help development docker run -p 3030:3030 -d appbaseio/mirage docker run -p 1358:1358 -d appbaseio/dejavu

or use Kibana http://drupal-elasticsearch.ddev.site:5601/app/dev_tools#/console

Generate demo content

Demo content can be created with command: ddev drush en demo_content -y

Run PHPUnit tests

ddev exec phpunit -c web/core web/modules/contrib/elasticsearch_connector

Run a single test with sqlite. ddev . -- php web/core/scripts/run-tests.sh --verbose --sqlite /tmp/test.sqlite --dburl sqlite://localhost//tmp/test.sqlite --class "'Drupal\Tests\elasticsearch_connector\Unit\ElasticSearch\Parameters\Factory\MappingFactoryTest'"

SOLR

Install site with Solr.

ddev drush @solr site-install --existing-config --account-pass=123 -y --sites-subdir=solr

Adding Solr server on Drupal Search API UI is not currently working. http://drupal-elasticsearch-solr.ddev.site/admin/config/search/search-api/add-server will throw an fatal error.

About

Local DDEV development environment for stabilizing Elasticsearch connector for Drupal drupal.org/project/elasticsearch_connector

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages