From 91f5a0030b0c89cf6fa13ee5d438cb7cc22c5ca3 Mon Sep 17 00:00:00 2001 From: Matthias Eckert Date: Wed, 8 Mar 2023 07:22:01 +0100 Subject: [PATCH] [logseq-plugin-git:commit] 2023-03-08T06:22:00.934Z --- .../journals/2023_03_07/2023-03-08T06_21_51.265Z.Desktop.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 logseq/bak/journals/2023_03_07/2023-03-08T06_21_51.265Z.Desktop.md diff --git a/logseq/bak/journals/2023_03_07/2023-03-08T06_21_51.265Z.Desktop.md b/logseq/bak/journals/2023_03_07/2023-03-08T06_21_51.265Z.Desktop.md new file mode 100644 index 00000000..e564399d --- /dev/null +++ b/logseq/bak/journals/2023_03_07/2023-03-08T06_21_51.265Z.Desktop.md @@ -0,0 +1,5 @@ +- JQ Solr Facets/Pivot Group #JQ #Solr [[Code Snippet]] + - Create overview of all collections with yearly counts of docs, sorted by year on collection, sum overall + - http://tools.k8s-c1.vicosrv.de/module/customer/163,168,178,183,194,210,211,212,216,217,218,220,224,227,231,232,233,236,237,244,246,247,248,249,251,808/solr?query=q.op%3DOR%26q%3D*%253A*%26facet.range.gap%3D%252B1YEAR%26facet%3Dtrue%26facet.range%3DpubDate%26facet.range.start%3D2000-01-01T00%3A00%3A00Z%26facet.range.end%3D2024-01-01T00%3A00%3A00Z%26rows%3D0%26facet.mincount%3D1&raw=true&jq=map(%7B%22pid%22%3A.customer.project.id%2C%20%22cid%22%3A.customer.customerId%2C%20%22sum%22%3A.rawResponse.facet_counts.facet_ranges.pubDate.counts%20%7C%20(if%20.%20%3D%3D%20null%20then%200%20else%20(.%20%7C%20to_entries%20%7C%20map(.value)%20%7C%20add)%20end)%20%2C%20%22docs%22%3A%20.rawResponse.facet_counts.facet_ranges.pubDate.counts%20%7C%20(if%20.%20%3D%3D%20null%20then%200%20else%20(.%20%7C%20to_entries%20%7C%20sort_by(.key)%20%7C%20from_entries)%20end)%20%7D)%20%7C%20sort_by(.sum)%20%7C%20reverse + - map({"pid":.customer.project.id, "cid":.customer.customerId, "sum":.rawResponse.facet_counts.facet_ranges.pubDate.counts | (if . == null then 0 else (. | to_entries | map(.value) | add) end) , "docs": .rawResponse.facet_counts.facet_ranges.pubDate.counts | (if . == null then 0 else (. | to_entries | sort_by(.key) | from_entries) end) }) | sort_by(.sum) | reverse +- TODO https://funxd.site/2021/12/06/zurueck-nach-hause-die-unglaubliche-reise-1993/?highlight=Zur%C3%BCck%20nach%20Hause \ No newline at end of file