Skip to content

Instantly share code, notes, and snippets.

@randsina
Created October 17, 2017 22:53
Show Gist options
  • Save randsina/fefcdf9ca12b6386961fe02378b11777 to your computer and use it in GitHub Desktop.
Save randsina/fefcdf9ca12b6386961fe02378b11777 to your computer and use it in GitHub Desktop.
{
"data_feed_items" : {
"aliases" : { },
"mappings" : {
"data_feed_item" : {
"dynamic" : "strict",
"_all" : {
"enabled" : false
},
"properties" : {
"boost" : {
"type" : "double"
},
"brand" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"category" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"color" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"condition" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"country" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"depth" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"did_you_mean" : {
"type" : "string",
"analyzer" : "didYouMean"
},
"height" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"manufacturer" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
},
"copy_to" : [ "did_you_mean" ],
"analyzer" : "edgeNGramAnalyzer"
},
"material" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"memory" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"merchant" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
},
"copy_to" : [ "did_you_mean" ]
},
"model" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"model_family" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"offer_description" : {
"type" : "string"
},
"offer_id" : {
"type" : "string",
"index" : "no"
},
"offer_title" : {
"type" : "string",
"fields" : {
"autocomplete" : {
"type" : "string",
"analyzer" : "autocomplete_analyzer",
"search_analyzer" : "standard"
}
},
"copy_to" : [ "did_you_mean" ]
},
"other_feature" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"part_number" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"pner_category" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"power" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"price" : {
"type" : "double"
},
"purpose" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"quantity" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"resolution" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"sex" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"shipping_rate" : {
"type" : "double"
},
"size" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"source" : {
"type" : "integer"
},
"speed" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"style" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"sub_category" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"target" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"title" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"units" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"voltage" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"volume" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"weight" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"width" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
},
"year" : {
"type" : "string",
"fields" : {
"raw" : {
"type" : "string",
"index" : "not_analyzed"
}
}
}
}
}
},
"settings" : {
"index" : {
"refresh_interval" : "-1",
"number_of_shards" : "3",
"query" : {
"default_field" : "offer_title"
},
"creation_date" : "1508243385143",
"analysis" : {
"filter" : {
"stemming" : {
"name" : "english",
"type" : "stemmer"
},
"stopwords" : {
"type" : "stop",
"stopwords" : "_english_"
},
"synonyms" : {
"type" : "synonym",
"synonyms" : [ "refurbished,condition", "used,condition", "smartphone=>phone", "jujube, ju ju be" ]
},
"autocomplete_filter" : {
"type" : "edge_ngram",
"min_gram" : "1",
"max_gram" : "20"
}
},
"analyzer" : {
"default" : {
"filter" : [ "standard", "lowercase", "stopwords", "synonyms", "stemmer" ],
"tokenizer" : "standard"
},
"didYouMean" : {
"filter" : [ "lowercase", "stopwords" ],
"tokenizer" : "standard"
},
"autocomplete_analyzer" : {
"filter" : [ "lowercase", "autocomplete_filter" ],
"type" : "custom",
"tokenizer" : "standard"
},
"edgeNGramAnalyzer" : {
"filter" : [ "lowercase" ],
"tokenizer" : "edgeNGramTokenizer"
}
},
"tokenizer" : {
"edgeNGramTokenizer" : {
"token_chars" : [ "letter", "digit", "punctuation" ],
"min_gram" : "1",
"type" : "edgeNGram",
"max_gram" : "10"
}
}
},
"number_of_replicas" : "0",
"uuid" : "duUrbHDLT_-kAc6lnG-k7Q",
"version" : {
"created" : "2030599"
}
}
},
"warmers" : { }
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment