Skip to content

Commit

Permalink
Strip baked-in underscore prefix
Browse files Browse the repository at this point in the history
  • Loading branch information
Arkadiy Kukarkin committed Jan 11, 2017
1 parent 0b2f14b commit 1de1e4a
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion scripts/publish-500px.sh
Expand Up @@ -12,7 +12,7 @@ SKIP_VALIDATION='--skipSchemaValidation'
mcclient publish ${SKIP_VALIDATION} \
--jqFilter '._source | del(.aesthetics)' \
--prefix '500px'
--idFilter '.native_id' \
--idFilter '.native_id | sub("500px[^_]*_(?<id>\\d+)"; "\(.id)")' \
${NAMESPACE} \
${SCHEMA_HASH} \
$1 > /dev/null
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-dpla.sh
Expand Up @@ -12,7 +12,7 @@ SKIP_VALIDATION='--skipSchemaValidation'

mcclient publish ${SKIP_VALIDATION} \
--jqFilter '._source | del(.aesthetics)' \
--idFilter '.native_id | sub("dpla_http://dp.la/api/items/(?<id>.+)"; ".id")' \
--idFilter '.native_id | sub("dpla_http://dp.la/api/items/(?<id>.+)"; "\(.id)")' \
--prefix 'dpla'
${NAMESPACE} \
${SCHEMA_HASH} \
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-flickr-c10.sh
Expand Up @@ -7,7 +7,7 @@ COMPOUND="--compound 10"
mcclient publish ${COMPOUND} \
--skipSchemaValidation \
--jqFilter '._source | del(.aesthetics)' \
--idFilter '.native_id' \
--idFilter '.native_id | sub("flickr[^_]*_(?<id>\\d+)"; "\(.id)")' \
--prefix 'flickr'
${NAMESPACE} \
${SCHEMA_HASH} \
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-flickr-c100.sh
Expand Up @@ -7,7 +7,7 @@ COMPOUND="--compound 100"
mcclient publish ${COMPOUND} \
--skipSchemaValidation \
--jqFilter '._source | del(.aesthetics)' \
--idFilter '.native_id' \
--idFilter '.native_id | sub("flickr[^_]*_(?<id>\\d+)"; "\(.id)")' \
--prefix 'flickr'
${NAMESPACE} \
${SCHEMA_HASH} \
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-flickr.sh
Expand Up @@ -12,7 +12,7 @@ SKIP_VALIDATION='--skipSchemaValidation'

mcclient publish ${SKIP_VALIDATION} \
--jqFilter '._source | del(.aesthetics)' \
--idFilter '.native_id' \
--idFilter '.native_id | sub("flickr[^_]*_(?<id>\\d+)"; "\(.id)")' \
--prefix 'flickr'
${NAMESPACE} \
${SCHEMA_HASH} \
Expand Down
4 changes: 2 additions & 2 deletions scripts/publish-pexels.sh
Expand Up @@ -11,8 +11,8 @@ SKIP_VALIDATION='--skipSchemaValidation'

mcclient publish ${SKIP_VALIDATION} \
--jqFilter '._source | del(.aesthetics)' \
--idFilter '.native_id' \
--prefix 'flickr'
--idFilter '.native_id | sub("flickr[^_]*_(?<id>\\d+)"; "\(.id)")' \
--prefix 'pexels'
${NAMESPACE} \
${SCHEMA_HASH} \
$1 > /dev/null
Expand Down

0 comments on commit 1de1e4a

Please sign in to comment.