Omniscience is a search utility for searching over private documents aggregated from a collection of sources.
+----------+
|Google |
|Drive | --+
|Service | |
+----------+ |
|
+----------+ | +----------+ +----------+ +----------+
|GitHub | | |Ingestion | |DB | |Frontend |
|Service | --+--> |Service | --> | | --> | |
| | | | | | | | |
+----------+ | +----------+ +----------+ +----------+
|
+----------+ |
|Confluence| |
|Service | --+
| |
+----------+
$ brew update
$ brew install elasticsearch
To avoid getting a cors related error when connecting the UI to your local elasticsearch instance, add the following to your config/elasticsearch.yml
file (if you installed Elasticsearch using brew, this file can be found at /usr/local/Cellar/elasticsearch/6.2.2/libexec/config/elasticsearch.yml
).
http.cors.enabled : true
http.cors.allow-origin : "*"
http.cors.allow-methods : OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers : X-Requested-With,X-Auth-Token,Content-Type, Content-Length
$ elasticsearch
To start the omniscience server, run
$ go run cmd/omniscience_server/main.go --fGoogleServiceAccountPath=<path-to-service-account-json>
from the root of the project.
Indexing is invoked on a per service basis. To index files from a given service navigate to the service's directory in the cmd/omniscience_client
directory and run
$ go run main.go
with the relevant flags for the service. More detailed instructions for running each service can be found in the README of each service's directory.
Elasticsearch and the omniscience server must be running for indexing to work.
From the project root run:
$ cd client && npm i
From the project root run:
$ cd client && npm start
Navigate to http://localhost:3000
This project is licensed under the MIT License - see the LICENSE.md file for details