Mercurial > hg > LGDataverses
comparison scripts/search/compare @ 10:a50cf11e5178
Rewrite LGDataverse completely upgrading to dataverse4.0
author | Zoe Hong <zhong@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 08 Sep 2015 17:00:21 +0200 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
9:5926d6419569 | 10:a50cf11e5178 |
---|---|
1 #!/bin/bash | |
2 DIR=/tmp/searchusers | |
3 FINCHKEY=`cat $DIR/1 | jq .data.apiToken | tr -d \"` | |
4 SPRUCKEY=`cat $DIR/4 | jq .data.apiToken | tr -d \"` | |
5 echo "Search API:" | |
6 curl -s "http://localhost:8080/api/search?q=*&key=$FINCHKEY" | jq '.data.fq_actual' | |
7 echo "Database:" | |
8 scripts/search/dbperms $1 | grep '|' | |
9 echo "Solr per group docs (old):" | |
10 curl -s "http://localhost:8983/solr/collection1/select?rows=100&wt=json&indent=true&q=entityid%3A$1" | jq '.response.docs[] | {id, name_sort, perms_ss}' | |
11 echo "Solr permission docs (new):" | |
12 curl -s "http://localhost:8983/solr/collection1/select?rows=100&wt=json&indent=true&q=definition_point_dvobject_id_s%3A$1" | jq '.response.docs[] | {definition_point_s,discoverable_by_ss}' | |
13 echo "Java:" | |
14 curl -s "http://localhost:8080/api/search/perms?q=*&key=$FINCHKEY&id=$1" | jq '.data[]' 2>/dev/null | |
15 exit | |
16 echo "Search API perms, items (finch):" | |
17 curl -s "http://localhost:8080/api/search?q=*&key=$FINCHKEY" | jq '.data | {fq_actual, items}' | |
18 echo "Search API perms, items (spruce):" | |
19 curl -s "http://localhost:8080/api/search?q=*&key=$SPRUCKEY" | jq '.data | {fq_actual, items}' |