Skip to content

elifesciences/search

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.