Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/warelab/gramene-solr


https://github.com/warelab/gramene-solr

database gramene gramene-search javascript nodejs solr

Last synced: 20 days ago
JSON representation

Awesome Lists containing this project

README

        

convert mongo genes to solr genes
```
cd genes
node --max-old-space-size=8192 ./mongo2solr.js > solr_genes.json
```

load into solr genes core
```
curl 'http://brie:8984/solr/genes55/update?commit=true' --data-binary @solr_genes.json -H 'Content-type:application/json'
```

create suggestions
```
cd ../suggestions
node aux.js http://brie:8984/solr/genes55
node --max-old-space-size=8192 ./genes.js http://brie:8984/solr/genes55 > genes.json
```

load into solr suggestions core
```
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @GO.json -H 'Content-type:application/json'
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @PO.json -H 'Content-type:application/json'
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @taxonomy.json -H 'Content-type:application/json'
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @domains.json -H 'Content-type:application/json'
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @pathways.json -H 'Content-type:application/json'
curl 'http://brie:8984/solr/suggestions55/update?commit=true' --data-binary @genes.json -H 'Content-type:application/json'
```