Skip to content

Instantly share code, notes, and snippets.

@hecbuma
Last active August 29, 2015 14:20
Show Gist options
  • Save hecbuma/68b4f805793016bfb88f to your computer and use it in GitHub Desktop.
Save hecbuma/68b4f805793016bfb88f to your computer and use it in GitHub Desktop.
{
mappings: {
project: {
_all: {
index_analyzer: "nGram_analyzer_index",
search_analyzer: "whitespace_analyzer"
},
properties: {
accessories: {
type: "string",
index_analyzer: "nGram_analyzer_index",
search_analyzer: "nGram_analyzer_search"
},
accessories_ids: {
properties: {
id: {
type: "long"
},
quanity: {
type: "long"
}
}
},
all_tags: {
type: "string",
index_analyzer: "pattern_analyzer",
search_analyzer: "standard"
},
approved_on: {
type: "date",
format: "dateOptionalTime"
},
bit_ids: {
properties: {
id: {
type: "string"
},
quanity: {
type: "string"
}
}
},
bits: {
type: "string"
},
cached_votes_down: {
type: "long"
},
cached_votes_score: {
type: "long"
},
cached_votes_total: {
type: "long"
},
cached_votes_up: {
type: "long"
},
cached_weighted_score: {
type: "long"
},
category: {
type: "string"
},
code: {
type: "string"
},
comments_count: {
type: "long"
},
created_at: {
type: "date",
format: "dateOptionalTime"
},
credits: {
type: "string"
},
description: {
type: "string",
index_analyzer: "nGram_analyzer_index_2",
search_analyzer: "nGram_analyzer_search"
},
difficulty: {
type: "long"
},
embeds: {
type: "string"
},
files: {
properties: {
asset: {
properties: {
url: {
type: "string"
}
}
},
id: {
type: "long"
},
name: {
type: "string"
}
}
},
flagged_as_spam_on: {
type: "date",
format: "dateOptionalTime"
},
id: {
type: "integer"
},
image: {
type: "string"
},
images: {
properties: {
feature: {
type: "string"
},
mini: {
type: "string"
},
thumb: {
type: "string"
}
}
},
kits_only: {
properties: {
id: {
type: "long"
},
price: {
type: "long"
}
}
},
legacy_difficulty: {
type: "long"
},
like_count: {
type: "long"
},
materials: {
properties: {
id: {
type: "long"
},
name: {
type: "string"
}
}
},
materials.name: {
type: "string",
index_analyzer: "nGram_analyzer_index",
search_analyzer: "nGram_analyzer_search"
},
name: {
type: "string",
index_analyzer: "nGram_analyzer_index_2",
search_analyzer: "nGram_analyzer_search"
},
primary_image: {
properties: {
asset: {
properties: {
banner: {
properties: {
url: {
type: "string"
}
}
},
card_default: {
properties: {
url: {
type: "string"
}
}
},
card_feature: {
properties: {
url: {
type: "string"
}
}
},
card_mini: {
properties: {
url: {
type: "string"
}
}
},
card_thumb: {
properties: {
url: {
type: "string"
}
}
},
extra_large_filled: {
properties: {
url: {
type: "string"
}
}
},
large: {
properties: {
url: {
type: "string"
}
}
},
large_filled: {
properties: {
url: {
type: "string"
}
}
},
medium: {
properties: {
url: {
type: "string"
}
}
},
medium_cropped: {
properties: {
url: {
type: "string"
}
}
},
medium_filled: {
properties: {
url: {
type: "string"
}
}
},
small: {
properties: {
url: {
type: "string"
}
}
},
url: {
type: "string"
}
}
},
asset_content_type: {
type: "string"
},
asset_file_size: {
type: "long"
},
asset_height: {
type: "long"
},
asset_width: {
type: "long"
},
caption: {
type: "string"
},
created_at: {
type: "date",
format: "dateOptionalTime"
},
id: {
type: "long"
},
imageable_id: {
type: "long"
},
imageable_type: {
type: "string"
},
number: {
type: "long"
},
primary: {
type: "boolean"
},
updated_at: {
type: "date",
format: "dateOptionalTime"
}
}
},
products: {
properties: {
id: {
type: "long"
},
name: {
type: "string"
},
slug: {
type: "string"
}
}
},
products.name: {
type: "string",
analyzer: "nGram_analyzer_token"
},
products.slug: {
type: "string"
},
published?: {
type: "boolean"
},
published_at: {
type: "date",
format: "dateOptionalTime"
},
quantities: {
properties: {
}
},
referrer: {
type: "string"
},
request_ip: {
type: "string"
},
sketches: {
properties: {
asset: {
properties: {
banner: {
properties: {
url: {
type: "string"
}
}
},
card_default: {
properties: {
url: {
type: "string"
}
}
},
card_feature: {
properties: {
url: {
type: "string"
}
}
},
card_mini: {
properties: {
url: {
type: "string"
}
}
},
card_thumb: {
properties: {
url: {
type: "string"
}
}
},
extra_large_filled: {
properties: {
url: {
type: "string"
}
}
},
large: {
properties: {
url: {
type: "string"
}
}
},
large_filled: {
properties: {
url: {
type: "string"
}
}
},
medium: {
properties: {
url: {
type: "string"
}
}
},
medium_cropped: {
properties: {
url: {
type: "string"
}
}
},
medium_filled: {
properties: {
url: {
type: "string"
}
}
},
small: {
properties: {
url: {
type: "string"
}
}
},
url: {
type: "string"
}
}
},
asset_content_type: {
type: "string"
},
asset_file_size: {
type: "long"
},
asset_height: {
type: "long"
},
asset_width: {
type: "long"
},
caption: {
type: "string"
},
created_at: {
type: "date",
format: "dateOptionalTime"
},
id: {
type: "long"
},
imageable_id: {
type: "long"
},
imageable_type: {
type: "string"
},
primary: {
type: "boolean"
},
updated_at: {
type: "date",
format: "dateOptionalTime"
}
}
},
slug: {
type: "string",
index: "not_analyzed"
},
steps: {
properties: {
description: {
type: "string"
},
id: {
type: "long"
},
number: {
type: "long"
}
}
},
steps.description: {
type: "string",
index_analyzer: "nGram_analyzer_index_2",
search_analyzer: "nGram_analyzer_search"
},
taggings: {
type: "string",
index_analyzer: "pattern_analyzer",
search_analyzer: "standard"
},
tags: {
properties: {
tag: {
type: "string"
},
tag_type: {
type: "string"
}
}
},
title: {
type: "string"
},
tools: {
properties: {
id: {
type: "long"
},
name: {
type: "string"
}
}
},
tools.name: {
type: "string",
index_analyzer: "nGram_analyzer_index_2",
search_analyzer: "nGram_analyzer_search"
},
total_accessory_quantity: {
type: "long"
},
total_bit_quantity: {
type: "long"
},
type: {
type: "string"
},
updated_at: {
type: "date",
format: "dateOptionalTime"
},
url: {
type: "string"
},
user: {
properties: {
id: {
type: "long"
},
image: {
type: "string"
},
object_type: {
type: "string"
},
slug: {
type: "string"
},
url: {
type: "string"
},
username: {
type: "string"
}
}
},
user.slug: {
type: "string",
index_analyzer: "nGram_analyzer_index",
search_analyzer: "nGram_analyzer_search"
},
user.username: {
type: "string",
index_analyzer: "nGram_analyzer_index",
search_analyzer: "nGram_analyzer_search"
},
user_agent: {
type: "string"
},
user_id: {
type: "long"
},
videos: {
type: "string"
}
}
}
},
settings: {
index: {
creation_date: "1427861636214",
analysis: {
filter: {
nGram_filter_2: {
token_chars: [
"letter",
"digit",
"punctuation",
"symbol"
],
min_gram: "3",
type: "ngram",
max_gram: "15"
},
nGram_filter: {
token_chars: [
"letter",
"digit",
"punctuation",
"symbol"
],
min_gram: "5",
type: "ngram",
max_gram: "15"
}
},
analyzer: {
pattern_analyzer: {
pattern: ", ",
type: "pattern",
lowercase: "false"
},
nGram_analyzer_token: {
type: "custom",
filter: [
"lowercase",
"asciifolding"
],
tokenizer: "edgeNgram_tokenizer"
},
nGram_analyzer_search: {
type: "custom",
filter: [
"lowercase",
"asciifolding"
],
tokenizer: "whitespace"
},
whitespace_analyzer: {
filter: [
"lowercase",
"asciifolding"
],
type: "custom",
tokenizer: "whitespace"
},
nGram_analyzer_index: {
filter: [
"lowercase",
"asciifolding",
"nGram_filter"
],
type: "custom",
tokenizer: "standard"
},
nGram_analyzer_index_2: {
type: "custom",
filter: [
"lowercase",
"asciifolding",
"nGram_filter_2"
],
tokenizer: "standard"
}
},
tokenizer: {
edgeNgram_tokenizer: {
token_chars: [
"letter",
"digit",
"whitespace"
],
min_gram: "4",
type: "edgeNgram",
max_gram: "30"
}
}
},
number_of_shards: "5",
uuid: "PzdGvZ6-S7KTXXwGirdrlg",
number_of_replicas: "1",
version: {
created: "1040399"
}
}
},
warmers: {
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment