[logseq-plugin-git:commit] 2023-03-07T17:45:17.652Z
This commit is contained in:
parent
547301bf7b
commit
f33c395fe3
@ -1,5 +1,4 @@
|
||||
- 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
|
||||
- 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
|
||||
Loading…
x
Reference in New Issue
Block a user