Skip to content

Instantly share code, notes, and snippets.

@mojzis
Last active August 23, 2016 15:46
Show Gist options
  • Save mojzis/e2a9f235fd4350754bcdc3e4c416adb7 to your computer and use it in GitHub Desktop.
Save mojzis/e2a9f235fd4350754bcdc3e4c416adb7 to your computer and use it in GitHub Desktop.
see how is the field saved / tokenized in elastic
{
"query": {
"term": {
"sku": "2306"
}
},
"script_fields": {
"terms": {
"script": "doc[field].values",
"params": {
"field": "metaKeywords"
}
}
}
}
https://github.com/jprante/elasticsearch-analysis-decompound
index/_analyze
{
"analyzer": "analyze_german_text",
"text": "Donaudampfschiff"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment