Advertisement
Guest User

index

a guest
Jan 24th, 2020
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. curl -XPUT "http://127.0.0.1:9200/additional-report-v3/_mapping" -H 'Content-Type: application/json' -d '
  2. {
  3. "properties": {
  4. "interval_start": {
  5. "type": "date",
  6. "format": "yyyy-MM-dd HH:mm:ss"
  7. },
  8. "creative_id": {
  9. "type": "integer"
  10. },
  11. "zone_id": {
  12. "type": "integer"
  13. },
  14. "country": {
  15. "type": "keyword"
  16. },
  17. "region": {
  18. "type": "keyword"
  19. },
  20. "city": {
  21. "type": "keyword"
  22. },
  23. "device_type": {
  24. "type": "keyword"
  25. },
  26. "device_brand": {
  27. "type": "keyword"
  28. },
  29. "device_model": {
  30. "type": "keyword"
  31. },
  32. "os_name": {
  33. "type": "keyword"
  34. },
  35. "os_version": {
  36. "type": "keyword"
  37. },
  38. "browser_name": {
  39. "type": "keyword"
  40. },
  41. "browser_version": {
  42. "type": "keyword"
  43. },
  44. "requests": {
  45. "type": "integer"
  46. },
  47. "impressions": {
  48. "type": "integer"
  49. },
  50. "clicks": {
  51. "type": "integer"
  52. }
  53. }
  54. }'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement