Changeset View
Changeset View
Standalone View
Standalone View
README.md
swh-search | swh-search | ||||
========== | ========== | ||||
Search service for the Software Heritage archive. | Search service for the Software Heritage archive. | ||||
Currently uses ElasticSearch, and provides only origin search (by URL and metadata) | Currently uses ElasticSearch, and provides only origin search (by URL and metadata) | ||||
# Dependencies | # Dependencies | ||||
Python tests for this module include tests that cannot be run without a local | Python tests for this module include tests that cannot be run without a local | ||||
ElasticSearch instance, so you need the ElasticSearch server executable on your | ElasticSearch instance, so you need the ElasticSearch server executable on your | ||||
machine (no need to have a running ElasticSearch server). | machine (no need to have a running ElasticSearch server). | ||||
## Debian-like host | ## Debian-like host | ||||
The following instructions is enough: | The elasticsearch package is required. As it's not part of debian-stable, | ||||
``` | [another debian repository is required to be | ||||
sudo apt install elasticsearch | configured](https://www.elastic.co/guide/en/elasticsearch/reference/current/deb.html#deb-repo) | ||||
``` | |||||
## Non Debian-like host | ## Non Debian-like host | ||||
The tests expect: | The tests expect: | ||||
- `/usr/share/elasticsearch/jdk/bin/java` to exist. | - `/usr/share/elasticsearch/jdk/bin/java` to exist. | ||||
- `org.elasticsearch.bootstrap.Elasticsearch` to be in java's classpath. | - `org.elasticsearch.bootstrap.Elasticsearch` to be in java's classpath. |