Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Get Mapping #98

Open
nelsonic opened this issue Dec 7, 2015 · 0 comments
Open

Get Mapping #98

nelsonic opened this issue Dec 7, 2015 · 0 comments

Comments

@nelsonic
Copy link
Member

nelsonic commented Dec 7, 2015

To get the mapping of the Type(s) in our ElasticSearch Index use:
https://www.elastic.co/guide/en/elasticsearch/reference/current/indices-get-mapping.html

curl -XGET 'https://localhost:9200/twitter/_mapping/tweet?pretty'

Returns:

{
  "twitter" : {
    "mappings" : {
      "tweet" : {
        "properties" : {
          "created_at" : {
            "type" : "string"
          },
          "entities" : {
            "properties" : {
              "hashtags" : {
                "properties" : {
                  "indices" : {
                    "type" : "long"
                  },
                  "text" : {
                    "type" : "string"
                  }
                }
              },
              "urls" : {
                "properties" : {
                  "display_url" : {
                    "type" : "string"
                  },
                  "expanded_url" : {
                    "type" : "string"
                  },
                  "indices" : {
                    "type" : "long"
                  },
                  "url" : {
                    "type" : "string"
                  }
                }
              },
              "user_mentions" : {
                "properties" : {
                  "id" : {
                    "type" : "long"
                  },
                  "id_str" : {
                    "type" : "string"
                  },
                  "indices" : {
                    "type" : "long"
                  },
                  "name" : {
                    "type" : "string"
                  },
                  "screen_name" : {
                    "type" : "string"
                  }
                }
              }
            }
          },
          "favorite_count" : {
            "type" : "long"
          },
          "favorited" : {
            "type" : "boolean"
          },
          "filter_level" : {
            "type" : "string"
          },
          "hello" : {
            "type" : "string"
          },
          "id" : {
            "type" : "long"
          },
          "id_str" : {
            "type" : "string"
          },
          "in_reply_to_screen_name" : {
            "type" : "string"
          },
          "in_reply_to_status_id" : {
            "type" : "long"
          },
          "in_reply_to_status_id_str" : {
            "type" : "string"
          },
          "in_reply_to_user_id" : {
            "type" : "long"
          },
          "in_reply_to_user_id_str" : {
            "type" : "string"
          },
          "index" : {
            "type" : "string"
          },
          "lang" : {
            "type" : "string"
          },
          "me" : {
            "type" : "string"
          },
          "message" : {
            "type" : "string"
          },
          "possibly_sensitive" : {
            "type" : "boolean"
          },
          "retweet_count" : {
            "type" : "long"
          },
          "retweeted" : {
            "type" : "boolean"
          },
          "source" : {
            "type" : "string"
          },
          "text" : {
            "type" : "string"
          },
          "timestamp_ms" : {
            "type" : "string"
          },
          "truncated" : {
            "type" : "boolean"
          },
          "type" : {
            "type" : "string"
          },
          "user" : {
            "properties" : {
              "contributors_enabled" : {
                "type" : "boolean"
              },
              "created_at" : {
                "type" : "string"
              },
              "default_profile" : {
                "type" : "boolean"
              },
              "default_profile_image" : {
                "type" : "boolean"
              },
              "description" : {
                "type" : "string"
              },
              "favourites_count" : {
                "type" : "long"
              },
              "followers_count" : {
                "type" : "long"
              },
              "friends_count" : {
                "type" : "long"
              },
              "geo_enabled" : {
                "type" : "boolean"
              },
              "id" : {
                "type" : "long"
              },
              "id_str" : {
                "type" : "string"
              },
              "is_translator" : {
                "type" : "boolean"
              },
              "lang" : {
                "type" : "string"
              },
              "listed_count" : {
                "type" : "long"
              },
              "location" : {
                "type" : "string"
              },
              "name" : {
                "type" : "string"
              },
              "profile_background_color" : {
                "type" : "string"
              },
              "profile_background_image_url" : {
                "type" : "string"
              },
              "profile_background_image_url_https" : {
                "type" : "string"
              },
              "profile_background_tile" : {
                "type" : "boolean"
              },
              "profile_banner_url" : {
                "type" : "string"
              },
              "profile_image_url" : {
                "type" : "string"
              },
              "profile_image_url_https" : {
                "type" : "string"
              },
              "profile_link_color" : {
                "type" : "string"
              },
              "profile_sidebar_border_color" : {
                "type" : "string"
              },
              "profile_sidebar_fill_color" : {
                "type" : "string"
              },
              "profile_text_color" : {
                "type" : "string"
              },
              "profile_use_background_image" : {
                "type" : "boolean"
              },
              "protected" : {
                "type" : "boolean"
              },
              "screen_name" : {
                "type" : "string"
              },
              "statuses_count" : {
                "type" : "long"
              },
              "time_zone" : {
                "type" : "string"
              },
              "url" : {
                "type" : "string"
              },
              "utc_offset" : {
                "type" : "long"
              },
              "verified" : {
                "type" : "boolean"
              }
            }
          }
        }
      }
    }
  }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant