Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
26 kB
3
Indexable
root@production-1:~# curl -X GET "localhost:9200/user_write/_mapping?pretty"
{
  "user" : {
    "mappings" : {
      "properties" : {
        "avatar" : {
          "properties" : {
            "created_at" : {
              "type" : "date"
            },
            "driver" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "ext" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "extra" : {
              "properties" : {
                "path" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "size" : {
                  "properties" : {
                    "height" : {
                      "type" : "long"
                    },
                    "width" : {
                      "type" : "long"
                    }
                  }
                },
                "weight" : {
                  "type" : "boolean"
                }
              }
            },
            "extra_by_key" : {
              "properties" : {
                "120" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "192" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "48" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "72" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "96" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                }
              }
            },
            "filename" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "full_path" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "id" : {
              "type" : "long"
            },
            "path" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "size" : {
              "properties" : {
                "height" : {
                  "type" : "long"
                },
                "width" : {
                  "type" : "long"
                }
              }
            },
            "status" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "updated_at" : {
              "type" : "date"
            },
            "weight" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "avatar_file_id" : {
          "type" : "long"
        },
        "avatars" : {
          "properties" : {
            "created_at" : {
              "type" : "date"
            },
            "driver" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "ext" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "extra" : {
              "properties" : {
                "path" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "size" : {
                  "properties" : {
                    "height" : {
                      "type" : "long"
                    },
                    "width" : {
                      "type" : "long"
                    }
                  }
                },
                "weight" : {
                  "type" : "boolean"
                }
              }
            },
            "extra_by_key" : {
              "properties" : {
                "120" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "192" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "48" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "72" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                },
                "96" : {
                  "properties" : {
                    "path" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "size" : {
                      "properties" : {
                        "height" : {
                          "type" : "long"
                        },
                        "width" : {
                          "type" : "long"
                        }
                      }
                    },
                    "url" : {
                      "type" : "text",
                      "fields" : {
                        "keyword" : {
                          "type" : "keyword",
                          "ignore_above" : 256
                        }
                      }
                    },
                    "weight" : {
                      "type" : "boolean"
                    }
                  }
                }
              }
            },
            "filename" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "full_path" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "id" : {
              "type" : "long"
            },
            "path" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "pivot" : {
              "properties" : {
                "file_id" : {
                  "type" : "long"
                },
                "user_id" : {
                  "type" : "long"
                }
              }
            },
            "size" : {
              "properties" : {
                "height" : {
                  "type" : "long"
                },
                "width" : {
                  "type" : "long"
                }
              }
            },
            "status" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "updated_at" : {
              "type" : "date"
            },
            "weight" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "bio" : {
          "type" : "text",
          "analyzer" : "russian"
        },
        "bio_short" : {
          "type" : "text",
          "analyzer" : "russian"
        },
        "birthday" : {
          "type" : "date"
        },
        "business_experience" : {
          "type" : "text",
          "analyzer" : "russian"
        },
        "card" : {
          "properties" : {
            "billing_id" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "extra" : {
              "properties" : {
                "card_type" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "expiry_month" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "expiry_year" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "first6" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "id" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "issuer_country" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "issuer_name" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "last4" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "saved" : {
                  "type" : "boolean"
                },
                "title" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                },
                "type" : {
                  "type" : "text",
                  "fields" : {
                    "keyword" : {
                      "type" : "keyword",
                      "ignore_above" : 256
                    }
                  }
                }
              }
            },
            "id" : {
              "type" : "long"
            },
            "is_main" : {
              "type" : "boolean"
            },
            "user_id" : {
              "type" : "long"
            }
          }
        },
        "city_id" : {
          "type" : "long"
        },
        "club_id" : {
          "type" : "long"
        },
        "coordinates" : {
          "properties" : {
            "latitude" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "longitude" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "created_at" : {
          "type" : "date"
        },
        "email" : {
          "type" : "text"
        },
        "full_name" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "hometown_id" : {
          "type" : "long"
        },
        "id" : {
          "type" : "long"
        },
        "is_active" : {
          "type" : "boolean"
        },
        "is_friend" : {
          "type" : "boolean"
        },
        "is_visible" : {
          "type" : "long"
        },
        "language" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "manager_id" : {
          "type" : "long"
        },
        "name" : {
          "type" : "text",
          "analyzer" : "russian"
        },
        "online_at" : {
          "type" : "date"
        },
        "password_changed_at" : {
          "type" : "date"
        },
        "phone" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "radar" : {
          "properties" : {
            "is_visible" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "ready_meet" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "tags" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "rating" : {
          "type" : "long"
        },
        "relation" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "revenue" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "role" : {
          "type" : "text",
          "fields" : {
            "keyword" : {
              "type" : "keyword",
              "ignore_above" : 256
            }
          }
        },
        "social" : {
          "properties" : {
            "facebook" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "instagram" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "telegram" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            },
            "vk" : {
              "type" : "text",
              "fields" : {
                "keyword" : {
                  "type" : "keyword",
                  "ignore_above" : 256
                }
              }
            }
          }
        },
        "status" : {
          "type" : "long"
        },
        "subscription" : {
          "type" : "long"
        },
        "surname" : {
          "type" : "text",
          "analyzer" : "russian"
        },
        "updated_at" : {
          "type" : "date"
        }
      }
    }
  }
}