diff --git a/pages/Sublime Dump.md b/pages/Sublime Dump.md index 479b36f0..6d199856 100644 --- a/pages/Sublime Dump.md +++ b/pages/Sublime Dump.md @@ -228,4 +228,67 @@ pv -e translations.sql | psql translationservice #+END_QUOTE -- \ No newline at end of file +- ``` + having(rollup(search(documents_241_8, q="guid:(50b75ee8-3461-30a0-a8d0-035d98c0f3fb 49dcbc10-9638-348f-88fb-d2cb29d1f3d7)", fl="guid, tags", sort="guid asc"),over="guid",count(tags)), gt(count(tags), 1)) + facet(documents_241_8, q="guid:(50b75ee8-3461-30a0-a8d0-035d98c0f3fb 49dcbc10-9638-348f-88fb-d2cb29d1f3d7)", buckets="guid, tags") + + + facet(documents_241_8, q="guid:(50b75ee8-3461-30a0-a8d0-035d98c0f3fb 49dcbc10-9638-348f-88fb-d2cb29d1f3d7)", buckets="guid, tags") + + + search(documents_241_8, q="guid:50b75ee8-3461-30a0-a8d0-035d98c0f3fb", fl="guid, superiors", sort="guid asc"),count(superiors)) + + + + facet(documents_240_8, q="guid:(ee85a4ab-6c7a-3923-a479-63582f04a021 77a9b3de-7eb9-3ac4-943b-8715bb995c8b)", buckets="tags", rows=20) + + rollup(search(documents_240_8, q="guid:(ee85a4ab-6c7a-3923-a479-63582f04a021 77a9b3de-7eb9-3ac4-943b-8715bb995c8b)", fl="guid, tags", sort="guid asc"),over="guid",count(tags)) + + + + + having(facet(documents_240_8, q="guid:(ee85a4ab-6c7a-3923-a479-63582f04a021 77a9b3de-7eb9-3ac4-943b-8715bb995c8b)", buckets="guid, ppage#syndicate_s_mode_both"), gt(count(*), 1)) + + + + having(rollup(facet(documents_240_8, q="guid:(ee85a4ab-6c7a-3923-a479-63582f04a021 77a9b3de-7eb9-3ac4-943b-8715bb995c8b)", buckets="guid,ppage#syndicate_s_mode_both", rows=50), over="guid", count(*)), gt(count(*), 1)) + + + + reduce(select(having(rollup(facet(documents_240_8, q="ppage#syndicate_s_mode_both:*", buckets="guid,ppage#syndicate_s_mode_both", rows=50, bucketSorts="ppage#syndicate_s_mode_both desc"), over="guid", count(*)), gt(count(*), 0)),guid, count(*) as numpp), by="numpp", group(sort="numpp desc", n="100")) + + + + select(having(rollup(facet(documents_241_8, q="ppage#syndicate_s_mode_both:* AND pubDate:[2023-01-01T00:00:00Z TO 2023-04-01T00:00:00Z}", buckets="guid,ppage#syndicate_s_mode_both", rows=-1), over="guid", count(*)), gt(count(*), 1)),guid, count(*) as numpp) + + + + select(having(rollup(facet(documents_241_8, q="cproduct_s_mode_both:* AND pubDate:[2023-02-01T00:00:00Z TO 2023-02-15T00:00:00Z}", buckets="guid,cproduct_s_mode_both", rows=-1), over="guid", count(*)), gt(count(*), 1)),guid, count(*) as numcp) + + + select(having(rollup(having(facet(documents_243_8, q="cproduct_s_mode_both:243#8#* AND pubDate:[2023-01-01T00:00:00Z TO 2023-02-01T00:00:00Z}", buckets="guid,cproduct_s_dv", rows=-1), and(gt(cproduct_s_dv, "243#8#0"), lt(cproduct_s_dv, "243#8#ffffffff-ffff-ffff-ffff-ffffffffffff"))), over="guid", count(*)), gt(count(*), 1)),guid, count(*) as numcp) + + + having(select(facet(documents_240_8,q="guid:(ee85a4ab-6c7a-3923-a479-63582f04a021 77a9b3de-7eb9-3ac4-943b-8715bb995c8b)", buckets="guid,cproduct_s_mode_both", rows=-1), guid, cproduct_s_mode_both), and(gt(cproduct_s_mode_both, "240#12#0"), lt(cproduct_s_mode_both, "240#12#ffffffff-ffff-ffff-ffff-ffffffffffff"))) + + + + + + update(documents_241_8_reviews,batchSize=500,search(documents_241_8, q="cproduct_s_mode_both:241#8#* AND pubDate:[2023-01-01T00:00:00Z TO 2023-02-01T00:00:00Z}",fl="guid,url,docType,pubDate,indexedDate,language,country,is_comment,is_share,sourceGuid,sourceType,authorGuid,authorType,cproduct_s_mode_both", sort="guid asc", rows=1000)) + update(documents_241_8_reviews,batchSize=500, + select(search(documents_241_8, q="cproduct_s_mode_both:241#8#* AND guid:000008ff-7085-3843-8f83-89e88820baf8",fl="guid,docType,language,country,sourceGuid,sourceType,authorGuid,authorType,cproduct_s_dv", qt="/export", sort="guid asc"), + guid,"" as url,docType, "" as pubDate, "" as indexedDate,language,country,"false" as is_comment, "false" as is_share", sourceGuid,sourceType,authorGuid,authorType,cproduct_s_dv as cproduct_s_mode_both + )) + + + update(documents_241_8_reviews, + batchSize=500, + search(collection1, + q=*:*, + qt="/export", + fl="id,a_s,a_i,a_f,s_multi,i_multi", + sort="a_f asc, a_i asc")) + + select(having(rollup(having(facet(documents_241_8, q="cproduct_s_mode_both:241#8#* AND pubDate:[2023-01-01T00:00:00Z TO 2023-02-01T00:00:00Z}", buckets="guid,cproduct_s_dv", rows=-1), and(gt(cproduct_s_dv, "241#8#0"), lt(cproduct_s_dv, "241#8#ffffffff-ffff-ffff-ffff-ffffffffffff"))), over="guid", count(*)), gt(count(*), 1)),guid, count(*) as numcp) + ``` \ No newline at end of file