I tried multi_match queries. The little Example seems to work meanwhile ... don't know why?! But my original index has the same problem.
I am posting the synonyms file, so as the create statement. Analyzing this via: GET /myindex/_analyze?field=article.authors {gumbel} results to: { "tokens": [ { "token": "gumbel", "start_offset": 1, "end_offset": 7, "type": "<ALPHANUM>", "position": 1 } ] } No synonym results as I would expect. Searching for a synonym "gumble" for example gives no results. I would be glad to hear from you ... TIA Ste Phan -- You received this message because you are subscribed to the Google Groups "elasticsearch" group. To unsubscribe from this group and stop receiving emails from it, send an email to elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/0aa73333-56ce-40af-a5e5-1f7673ff60a9%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
PUT /myindex?pretty { "settings": { "analysis": { "filter": { "SBSynonyms": { "type": "synonym", "ignore_case": true, "synonyms_path": "myindex.syn" } }, "analyzer": { "SBIndexAnalyzer": { "tokenizer": "standard", "filter": [ "lowercase", "SBSynonyms" ] }, "SBSearchAnalyzer": { "tokenizer": "standard", "filter": [ "lowercase" ] } } }, "mappings": { "article": { "_all": { "enabled": true }, "properties": { "title": { "type": "string", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "subtitle": { "type": "string", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "description": { "type": "string", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "url": { "type": "string" }, "authors": { "type": "string", "index_name": "author", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "tags": { "type": "string", "index_name": "tag", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "eannumbers": { "type": "string", "index_name": "eannumber" }, "skus": { "type": "string", "index_name": "sku" }, "verlage": { "type": "string", "index_name": "verlag", "search_analyzer": "SBSearchAnalyzer", "index_analyzer": "SBIndexAnalyzer" }, "mediafiles": { "properties": { "title": "string", "filetype": "string" }, "index_name": "mediafile" }, "price": { "type": "double" }, "active": { "type": "boolean" } } } } } }
myindex.syn
Description: Binary data