... | ... | @@ -4,7 +4,22 @@ What to do if ... |
|
|
|
|
|
Example: I open https://next.nomics.world/SCSMICH/MICS and it is "404 not found".
|
|
|
|
|
|
- check it is indexed in Solr in production
|
|
|
- run `ssh -N -L 8983:localhost:8983 cepremap@dolos.nomics.world`
|
|
|
- check it is indexed in Solr
|
|
|
- in production:
|
|
|
- `ssh -N -L 8983:localhost:8983 cepremap@dolos.nomics.world`
|
|
|
- for dev
|
|
|
- `ssh -N -L 8983:localhost:8983 cepremap@dev.nomics.world`
|
|
|
- open http://localhost:8983/solr/dbnomics/query?q=type:dataset%20AND%20provider_code:SCSMICH%20AND%20code:MICS (the Solr query is more readable as `"type:dataset AND provider_code:SCSMICH AND code:MICS"`)
|
|
|
- if a JSON document is displayed, it's OK |
|
|
\ No newline at end of file |
|
|
- if a JSON document is displayed, it's OK
|
|
|
- else
|
|
|
- try to index in *full mode* (not incremental mode):
|
|
|
- `FULL_MODE=1 ./import_storage_dir.sh ~/json-data fetcher_slug`
|
|
|
- if it still doesn't works, you can have more verbose output by adding `bash -x` at the beginning of the line:
|
|
|
- `bash -x FULL_MODE=1 ./import_storage_dir.sh ~/json-data fetcher_slug`
|
|
|
- You'll see the two commands of indexation, that are actually piped. Example:
|
|
|
```
|
|
|
Adding JSON documents to Solr index corresponding to new or modified datasets or series...
|
|
|
+ /home/cepremap/dbnomics-importer/dbnomics_json_to_solr_jsonl.py --log=info /home/cepremap/json-data/statpol-json-data
|
|
|
+ /opt/solr/bin/post -c dbnomics -type application/json -url http://localhost:8983/solr/dbnomics/update/json/docs -
|
|
|
```
|
|
|
- try to lunch `dbnomics_json_to_solr_jsonl.py | less` alone to see if there's any errors |