Skip to content

Latest commit

 

History

History
34 lines (21 loc) · 1.19 KB

README.md

File metadata and controls

34 lines (21 loc) · 1.19 KB

eLife Search

This project is using opensearch to index content of the eLife API and provide a full-text search for Journal.

Local development

  1. Clone the project git clone https://github.com/elifesciences/search.git
  2. To bring up all services, run: make dev

You should now be able to access the search API on http://localhost:8888/search

Common tasks include:

  • To run fast checks (e.g. linting) and fast tests: make check
  • To run all PHPUnit tests, including slow ones: make test
  • To replicate CI checks, including integration tests: make all-checks
  • To run a production rather than a development image: make prod
  • To empty the database and all state: make clean

See the Makefile for further targets.

Importing and using search

make import-entity will enqueue all items from a local instance of the api-dummy.

An optional make variable ENTITY can be passed in. Possible values for ENTITY can be found in src/Search/Queue/Command/ImportCommand.php.

To monitor the queue count:

docker compose exec app bin/console queue:count

Reload http://localhost:8888/search to see items being served by the search API.