Guest User

Untitled

a guest
Feb 21st, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.42 KB | None | 0 0
  1. {
  2. "test_nested": {
  3. "mappings": {
  4. "my_type": {
  5. "properties": {
  6. "group": {
  7. "type": "text",
  8. "fields": {
  9. "keyword": {
  10. "type": "keyword",
  11. "ignore_above": 256
  12. }
  13. }
  14. },
  15. "user": {
  16. "type": "nested",
  17. "properties": {
  18. "name": {
  19. "type": "text",
  20. "fields": {
  21. "keyword": {
  22. "type": "keyword",
  23. "ignore_above": 256
  24. }
  25. }
  26. }
  27. }
  28. }
  29. }
  30. }
  31. }
  32. }
  33. }
  34.  
  35. {
  36. "took": 2,
  37. "timed_out": false,
  38. "_shards": {
  39. "total": 5,
  40. "successful": 5,
  41. "failed": 0
  42. },
  43. "hits": {
  44. "total": 4,
  45. "max_score": 1,
  46. "hits": [
  47. {
  48. "_index": "test_nested",
  49. "_type": "my_type",
  50. "_id": "AWG5iVBz4bQsVnslc9gL",
  51. "_score": 1,
  52. "_source": {
  53. "group": "fans",
  54. "user": [
  55. {
  56. "name": "Linux"
  57. },
  58. {
  59. "name": "Android (operating system)"
  60. },
  61. {
  62. "name": "Widows 10"
  63. }
  64. ]
  65. }
  66. },
  67. {
  68. "_index": "test_nested",
  69. "_type": "my_type",
  70. "_id": "AWG5ieKW4bQsVnslc9gM",
  71. "_score": 1,
  72. "_source": {
  73. "group": "fans",
  74. "user": [
  75. {
  76. "name": "Bitcoin"
  77. },
  78. {
  79. "name": "PHP"
  80. },
  81. {
  82. "name": "Microsoft Windows"
  83. }
  84. ]
  85. }
  86. },
  87. {
  88. "_index": "test_nested",
  89. "_type": "my_type",
  90. "_id": "AWG5irrV4bQsVnslc9gN",
  91. "_score": 1,
  92. "_source": {
  93. "group": "fans",
  94. "user": [
  95. {
  96. "name": "Windows XP"
  97. }
  98. ]
  99. }
  100. },
  101. {
  102. "_index": "test_nested",
  103. "_type": "my_type",
  104. "_id": "1",
  105. "_score": 1,
  106. "_source": {
  107. "group": "fans",
  108. "user": [
  109. {
  110. "name": "iOS"
  111. },
  112. {
  113. "name": "Android (operating system)"
  114. },
  115. {
  116. "name": "Widows 10"
  117. },
  118. {
  119. "name": "Widows XP"
  120. }
  121. ]
  122. }
  123. }
  124. ]
  125. }
  126. }
Add Comment
Please, Sign In to add comment