Advertisement
jillesvangurp

sample mapping with geo_shape

Jan 31st, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. http://localhost:9200/test
  2.  
  3. {
  4. "settings":{
  5. "number_of_shards":1,
  6. "number_of_replicas":1
  7. },
  8. "mappings":{
  9. "place":{
  10. "_all":{
  11. "enabled":false
  12. },
  13. "properties":{
  14. "created_at":{
  15. "type":"date"
  16. },
  17. "updated_at":{
  18. "type":"date"
  19. },
  20. "ids":{
  21. "type":"string",
  22. "index":"not_analyzed"
  23. },
  24. "location":{
  25. "type":"geo_shape",
  26. "tree_levels":6
  27. }
  28. }
  29. },
  30. "poi":{
  31. "_all":{
  32. "enabled":false
  33. },
  34. "properties":{
  35. "location":{
  36. "type":"geo_shape"
  37. }
  38. }
  39. },
  40. "hub":{
  41. "_all":{
  42. "enabled":false
  43. },
  44. "properties":{
  45. "location":{
  46. "type":"geo_shape"
  47. }
  48. }
  49. },
  50. "wikipedia":{
  51. "_all":{
  52. "enabled":false
  53. },
  54. "properties":{
  55. "location":{
  56. "type":"geo_shape"
  57. }
  58. }
  59. }
  60. }
  61. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement