Advertisement
Guest User

Untitled

a guest
Aug 30th, 2016
162
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. curl -XGET "http://.../vcrm-corpus-117/fiche/_search?pretty" -d'
  2. {
  3. "facets": {
  4. "0": {
  5. "date_histogram": {
  6. "field": "fiche.Date_de_Réponse",
  7. "interval": "year"
  8. },
  9. "global": true,
  10. "facet_filter": {
  11. "fquery": {
  12. "query": {
  13. "filtered": {
  14. "query": {
  15. "query_string": {
  16. "query": "*"
  17. }
  18. },
  19. "filter": {
  20. "bool": {
  21. "must": [
  22. {
  23. "match_all": {}
  24. }
  25. ]
  26. }
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. },
  34. "size": 0
  35. }'
  36.  
  37. {
  38. "took": 34,
  39. "timed_out": false,
  40. "_shards": {
  41. "total": 1,
  42. "successful": 1,
  43. "failed": 0
  44. },
  45. "hits": {
  46. "total": 119585,
  47. "max_score": 0,
  48. "hits": []
  49. },
  50. "facets": {
  51. "0": {
  52. "_type": "date_histogram",
  53. "entries": [
  54. {
  55. "time": 1420070400000,
  56. "count": 122806
  57. },
  58. {
  59. "time": 1451606400000,
  60. "count": **108266**
  61. }
  62. ]
  63. }
  64. }
  65. }
  66.  
  67. curl -XGET "http://..../vcrm-corpus-117/fiche/_search?pretty" -d'
  68. {
  69. "facets": {
  70. "0": {
  71. "query": {
  72. "filtered": {
  73. "query": {
  74. "query_string": {
  75. "query": "*"
  76. }
  77. },
  78. "filter": {
  79. "bool": {
  80. "must": [
  81. {
  82. "range": {
  83. "fiche.Date_de_Réponse": {
  84. "from": 1420070400000,
  85. "to": 1451606400000
  86. }
  87. }
  88. }
  89. ]
  90. }
  91. }
  92. }
  93. }
  94. }
  95. },
  96. "size": 0
  97. }'
  98.  
  99. {
  100. "took": 6,
  101. "timed_out": false,
  102. "_shards": {
  103. "total": 1,
  104. "successful": 1,
  105. "failed": 0
  106. },
  107. "hits": {
  108. "total": 119585,
  109. "max_score": 0,
  110. "hits": []
  111. },
  112. "facets": {
  113. "0": {
  114. "_type": "query",
  115. "count": 61761
  116. }
  117. }
  118. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement