Guest User

Untitled

a guest
Jan 23rd, 2018
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.38 KB | None | 0 0
  1. {
  2. "person": {
  3. "properties": {
  4. "name": {
  5. "_boost": 5.0,
  6. "properties": {
  7. "first_name": {
  8. "type": "string",
  9. "store": "yes",
  10. "analyzer": "whitespace",
  11. "_boost": 4.0
  12. },
  13. "last_name": {
  14. "type": "string",
  15. "store": "yes"
  16. }
  17. }
  18. },
  19. "username": {
  20. "_boost": 5.0,
  21. "type": "string",
  22. "store": "yes",
  23. "index": "not_analyzed"
  24. },
  25. "email": {
  26. "type": "string",
  27. "store": "no",
  28. "index": "not_analyzed"
  29. },
  30. "job_title": {
  31. "type": "string",
  32. "store": "yes",
  33. "analyzer": "norwegian"
  34. },
  35. "job_description": {
  36. "type": "string",
  37. "store": "yes",
  38. "_boost": 3.0,
  39. "analyzer": "norwegian"
  40. },
  41. "address": {
  42. "properties": {
  43. "office": {
  44. "type": "string",
  45. "store": "yes"
  46. },
  47. "street_address": {
  48. "type": "string",
  49. "store": "yes"
  50. },
  51. "postalcode": {
  52. "type": "string",
  53. "store": "yes",
  54. "index": "not_analyzed"
  55. },
  56. "city": {
  57. "type": "string",
  58. "store": "yes"
  59. }
  60. }
  61. },
  62. "phone": {
  63. "properties": {
  64. "job_phone": {
  65. "type": "string",
  66. "store": "yes",
  67. "analyzer": "phonenumber"
  68. },
  69. "job_phone2": {
  70. "type": "string",
  71. "store": "yes",
  72. "analyzer": "phonenumber"
  73. },
  74. "job_mobile": {
  75. "type": "string",
  76. "store": "yes",
  77. "analyzer": "phonenumber"
  78. },
  79. "private_mobile": {
  80. "type": "string",
  81. "store": "yes",
  82. "analyzer": "phonenumber"
  83. }
  84. }
  85. },
  86. "department": {
  87. "type": "string",
  88. "store": "yes",
  89. "analyzer": "whitespace"
  90. },
  91. "company": {
  92. "type": "string"
  93. },
  94. "tags": {
  95. "type": "string",
  96. "store": "yes",
  97. "analyzer": "norwegian",
  98. "_boost": 2.0
  99. }
  100. }
  101. }
  102. }
Add Comment
Please, Sign In to add comment