[logseq-plugin-git:commit] 2023-03-07T13:04:29.180Z

This commit is contained in:
Matthias Eckert 2023-03-07 14:04:29 +01:00
parent 80eac58a5e
commit 582f8a07ce

3
journals/2023_03_07.md Normal file
View File

@ -0,0 +1,3 @@
- JQ Solr Facets/Pivot Group #JQ #Solr [[Code Snippet]]
- 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
-