Skip to content

Instantly share code, notes, and snippets.

@nickhoffman
Created October 14, 2011 13:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nickhoffman/6e935e022c759fbc8d61 to your computer and use it in GitHub Desktop.
Save nickhoffman/6e935e022c759fbc8d61 to your computer and use it in GitHub Desktop.
// curl localhost:9200/development_products/_settings?pretty=true
{
"development_products" : {
"settings" : {
"index.analysis.filter.3_8_ngram.max_gram": "8",
"index.analysis.filter.3_8_ngram.type": "nGram",
"index.analysis.filter.3_8_ngram.min_gram": "3",
"index.analysis.analyzer.ascii_std.type": "custom",
"index.analysis.analyzer.ascii_std.tokenizer": "standard",
"index.analysis.analyzer.ascii_std.filter.1": "lowercase",
"index.analysis.analyzer.ascii_std.filter.2": "asciifolding",
"index.analysis.analyzer.ascii_std.filter.0": "standard",
"index.analysis.analyzer.ascii_3_8_ngram.type": "custom",
"index.analysis.analyzer.ascii_3_8_ngram.tokenizer": "standard",
"index.analysis.analyzer.ascii_3_8_ngram.filter.0": "standard",
"index.analysis.analyzer.ascii_3_8_ngram.filter.1": "lowercase",
"index.analysis.analyzer.ascii_3_8_ngram.filter.2": "asciifolding",
"index.analysis.analyzer.ascii_3_8_ngram.filter.3": "3_8_ngram",
"index.number_of_shards": "5",
"index.number_of_replicas": "1"
}
}
}
// curl localhost:9200/development_products/_mapping?pretty=true
{
"development_products" : {
"product" : {
"properties" : {
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
"items" : {
"properties" : {
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
"item_number" : {
"index" : "not_analyzed",
"type" : "string"
},
"name" : {
"include_in_all" : false,
"analyzer" : "ascii_3_8_ngram",
"boost" : 2.0,
"type" : "string"
},
"properties" : {
"dynamic" : "true",
"properties" : {
"Alternate Modes" : { "type" : "string" },
"Category" : { "type" : "string" },
"Allegiance" : { "type" : "string" },
"Class" : { "type" : "string" },
"Sub-Category" : { "type" : "string" },
"Character" : { "type" : "string" },
"Color" : { "type" : "string" }
}
}
}
},
"catalog" : {
"properties" : {
"id" : {
"index" : "not_analyzed",
"type" : "string"
},
"name" : {
"include_in_all" : false,
"analyzer" : "ascii_3_8_ngram",
"type" : "string"
},
"number" : {
"index" : "not_analyzed",
"type" : "string"
},
"properties" : {
"dynamic" : "true",
"properties" : {
"Brand" : { "type" : "string" }
}
}
}
},
"name" : {
"include_in_all" : false,
"analyzer" : "ascii_3_8_ngram",
"boost" : 4.0,
"type" : "string"
},
"number" : {
"index" : "not_analyzed",
"type" : "string"
},
"properties" : {
"properties" : {
"Manufacturer" : { "type" : "string" },
"Edition" : { "type" : "string" },
"Class" : { "type" : "string" },
"Label" : { "type" : "string" },
"Product Code" : { "type" : "string" },
"Product #" : { "type" : "string" },
"Package Type" : {
"index" : "not_analyzed",
"type" : "string"
},
"character" : {
"include_in_all" : false,
"analyzer" : "ascii_3_8_ngram",
"boost" : 2.0,
"type" : "string"
}
}
},
"_all" : {
"analyzer" : "ascii_std",
"type" : "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment