Skip to content

Instantly share code, notes, and snippets.

@acampagna
Created January 30, 2013 15:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save acampagna/bbab15d699137f04ad87 to your computer and use it in GitHub Desktop.
Save acampagna/bbab15d699137f04ad87 to your computer and use it in GitHub Desktop.
{
"settings": {
"index": {
"number_of_shards": 5,
"number_of_replicas": 1
},
"analysis": {
"analyzer": {
"marker_search_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase"
],
"char_filter": [
"my_filter"
]
},
"marker_index_analyzer": {
"tokenizer": "standard",
"filter": [
"lowercase",
"substring"
],
"char_filter": [
"my_filter"
]
},
"marker_keyword_only": {
"tokenizer": "keyword",
"filter": [
"lowercase"
],
"char_filter": [
"my_filter"
]
}
},
"filter": {
"substring": {
"type": "edgeNGram",
"min_gram": 1,
"max_gram": 20,
"side": "front"
},
"my_snow": {
"type": "stemmer",
"name": "english"
}
},
"char_filter": {
"my_filter": {
"type": "mapping",
"mappings": [
"&=>and"
]
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment