Mercurial > hg > LGDataverses
diff 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 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/scripts/search/compare Tue Sep 08 17:00:21 2015 +0200 @@ -0,0 +1,19 @@ +#!/bin/bash +DIR=/tmp/searchusers +FINCHKEY=`cat $DIR/1 | jq .data.apiToken | tr -d \"` +SPRUCKEY=`cat $DIR/4 | jq .data.apiToken | tr -d \"` +echo "Search API:" +curl -s "http://localhost:8080/api/search?q=*&key=$FINCHKEY" | jq '.data.fq_actual' +echo "Database:" +scripts/search/dbperms $1 | grep '|' +echo "Solr per group docs (old):" +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}' +echo "Solr permission docs (new):" +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}' +echo "Java:" +curl -s "http://localhost:8080/api/search/perms?q=*&key=$FINCHKEY&id=$1" | jq '.data[]' 2>/dev/null +exit +echo "Search API perms, items (finch):" +curl -s "http://localhost:8080/api/search?q=*&key=$FINCHKEY" | jq '.data | {fq_actual, items}' +echo "Search API perms, items (spruce):" +curl -s "http://localhost:8080/api/search?q=*&key=$SPRUCKEY" | jq '.data | {fq_actual, items}'