Guest User

Untitled

a guest
Mar 13th, 2018
78
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.05 KB | None | 0 0
  1. {
  2. "index.v1": {
  3. "mappings": {
  4. "profile.event": {
  5. "dynamic_templates": [
  6. {
  7. "participant_profile_single": {
  8. "path_match": "event.participant_profile.single.*",
  9. "mapping": {
  10. "fields": {
  11. "raw": {
  12. "type": "keyword"
  13. }
  14. },
  15. "type": "text"
  16. }
  17. }
  18. },
  19. {
  20. "participant_profile_multi_value": {
  21. "path_match": "event.participant_profile.multi.*.value",
  22. "mapping": {
  23. "fields": {
  24. "raw": {
  25. "type": "keyword"
  26. }
  27. },
  28. "type": "text"
  29. }
  30. }
  31. },
  32. {
  33. "participant_profile_multi": {
  34. "path_match": "event.participant_profile.multi.*",
  35. "mapping": {
  36. "type": "nested"
  37. }
  38. }
  39. }
  40. ],
  41. "properties": {
  42. "event": {
  43. "properties": {
  44. "participant_profile": {
  45. "properties": {
  46. "multi": {
  47. "type": "nested",
  48. "properties": {
  49. "certifications": {
  50. "type": "nested",
  51. "properties": {
  52. "value": {
  53. "type": "text",
  54. "fields": {
  55. "raw": {
  56. "type": "keyword"
  57. }
  58. }
  59. }
  60. }
  61. },
  62. "business_categories": {
  63. "type": "nested",
  64. "properties": {
  65. "value": {
  66. "type": "text",
  67. "fields": {
  68. "raw": {
  69. "type": "keyword"
  70. }
  71. }
  72. }
  73. }
  74. }
  75. }
  76. },
  77. "single": {
  78. "type": "nested",
  79. "properties": {
  80. "eng_level": {
  81. "type": "text",
  82. "fields": {
  83. "raw": {
  84. "type": "keyword"
  85. }
  86. }
  87. },
  88. "primary_function": {
  89. "type": "text",
  90. "fields": {
  91. "raw": {
  92. "type": "keyword"
  93. }
  94. }
  95. }
  96. }
  97. }
  98. }
  99. }
  100. }
  101. }
  102. }
  103. }
  104. }
  105. }
  106. }
  107.  
  108. {
  109. "_index": "index.v1",
  110. "_type": "profile.event",
  111. "_id": "865981132.112",
  112. "_score": 1,
  113. "_source": {
  114. "event": {
  115. "participant_profile": {
  116. "single": {
  117. "eng_level": "high",
  118. "primary_function": "ceo"
  119. },
  120. "multi": {
  121. "certifications": [
  122. {
  123. "value": "iso_20001"
  124. }
  125. ],
  126. "business_categories": [
  127. {
  128. "value": "sbc_sdvosb"
  129. },
  130. {
  131. "value": "sbc_vosb"
  132. }
  133. ],
  134. }
  135. }
  136. }
  137. }
  138. }
  139.  
  140. {
  141. "query": {
  142. "nested": {
  143. "path": "event.participant_profile.multi.*",
  144. "query": {
  145. "more_like_this": {
  146. "like": [
  147. {
  148. "_id": "865981132.112",
  149. "_type": "profile.event"
  150. }
  151. ],
  152. "fields": [
  153. "event.participant_profile.multi.*.value"
  154. ],
  155. "minimum_should_match": "1%"
  156. }
  157. }
  158. }
  159. }
  160. }
Add Comment
Please, Sign In to add comment