Usagi
latest

Table of Contents

  • Demo: open dataset search
  • Import databases into Usagi for search
    • A. Write a configuration file:
    • B. Execute the Usagi installer:
    • C. Start Solr server and JSON API
    • D. Search
    • E. JSON API
  • Search API
  • Contributing
Usagi
  • Docs »
  • Import databases into Usagi for search
  • Edit on GitHub

Import databases into Usagi for search¶

A. Write a configuration file:¶

to teach Usagi to access the databases which you want to manage. (In the future, Usagi plans to also take metadata directly to avoid accessing user databases if needed for security reasons.) For example,

[ClassicModels]
data_store: psql
host: localhost
port: 5432
user: classic_user
dbname: classicmodels
password: password

B. Execute the Usagi installer:¶

./usagi-installer --data-store classic_models.cfg

C. Start Solr server and JSON API¶

./solr/solr/bin/solr start
cd api
pkill -KILL api_server.py
python api_server.py &
cd ..

D. Search¶

cd importer
python search.py <your_favourite_keyword>

E. JSON API¶

curl http://localhost:8085/api/search?q=<your_favourite_keyword>
Next Previous

© Copyright 2017, biggorilla.org. Revision c9327424.

Built with Sphinx using a theme provided by Read the Docs.