Skip to content

Instantly share code, notes, and snippets.

@mxkh
Last active March 14, 2017 20:12
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 mxkh/8cf2d758d0916c2cc9c5edbcedc8e4b7 to your computer and use it in GitHub Desktop.
Save mxkh/8cf2d758d0916c2cc9c5edbcedc8e4b7 to your computer and use it in GitHub Desktop.
{
"settings": {
"index": {
"creation_date": "1489519251358",
"analysis": {
"filter": {
"russian_stemmer": {
"type": "stemmer",
"language": "russian"
},
"russian_stop": {
"type": "stop",
"stopwords": "_russian_"
}
},
"analyzer": {
"russian": {
"filter": [
"lowercase",
"russian_stop",
"russian_stemmer",
"russian_morphology"
],
"type": "custom",
"tokenizer": "standard"
}
}
},
"number_of_shards": "5",
"number_of_replicas": "1",
"uuid": "nr_Geo1_R8OuxERJHxQyMA",
"version": {
"created": "2040299"
}
}
},
"mappings": {
"product": {
"_meta": {
"model": "SomeModel"
},
"properties": {
"search_data": {
"type": "nested",
"properties": {
"full_text": {
"analyzer": "russian",
"type": "string"
},
"number_facets": {
"type": "nested",
"properties": {
"name": {
"index": "not_analyzed",
"type": "string"
},
"value": {
"type": "double"
}
}
},
"id": {
"index": "not_analyzed",
"type": "string"
},
"string_facets": {
"type": "nested",
"properties": {
"name": {
"index": "not_analyzed",
"type": "string"
},
"value": {
"index": "not_analyzed",
"type": "string"
}
}
},
"sale_price": {
"type": "double"
}
}
},
"categories": {
"type": "nested",
"properties": {
"id": {
"index": "not_analyzed",
"type": "string"
},
"title": {
"index": "not_analyzed",
"type": "string"
}
}
},
"id": {
"type": "string"
}
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment