Advertisement
Guest User

Untitled

a guest
Jan 18th, 2019
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.37 KB | None | 0 0
  1. {
  2. "mappings" : {
  3. "_doc" : {
  4. "properties" : {
  5. "order_po_join" : {
  6. "type" : "join",
  7. "eager_global_ordinals" : true,
  8. "relations" : {
  9. "ordertracking" : "parcel_organization"
  10. }
  11. },
  12. "organization_id" : {
  13. "type" : "integer"
  14. },
  15. "parcel" : {
  16. "type" : "nested",
  17. "properties" : {
  18. "carrier_logo" : {
  19. "type" : "text",
  20. "fields" : {
  21. "keyword" : {
  22. "type" : "keyword",
  23. "ignore_above" : 256
  24. }
  25. }
  26. },
  27. "timezone_awareness" : {
  28. "type" : "text",
  29. "fields" : {
  30. "keyword" : {
  31. "type" : "keyword",
  32. "ignore_above" : 256
  33. }
  34. }
  35. }
  36. }
  37. },
  38. "updated_date" : {
  39. "type" : "date"
  40. }
  41. }
  42. }
  43. }
  44. }
  45.  
  46.  
  47. curl -X POST xxx/_reindex -H 'Content-Type: application/json' -d '{"source": {"index": "bruno" }, "dest":{"index": "new_bruno"}, "script":{"inline":"ctx._routing = ctx._source._id"}}'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement