Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unknown filter type [greeklish] for [greeklish_analysis] #15

Open
mixalistzikas opened this issue May 2, 2018 · 1 comment
Open

Unknown filter type [greeklish] for [greeklish_analysis] #15

mixalistzikas opened this issue May 2, 2018 · 1 comment

Comments

@mixalistzikas
Copy link

Even I have already use this mapping with ES2... Now when I'm trying to create this mapping with ES5, I'm getting the following error

{ "settings":{ "analysis":{ "analyzer":{ "greeklish_analyzer":{ "type":"custom", "tokenizer":"standard", "filter": ["lower_greek","greeklish_analysis"] }, "stem_analyzer":{ "type":"custom", "tokenizer":"standard", "filter": ["lower_greek","stem_greek"] } }, "filter": { "lower_greek": { "type":"lowercase", "language":"greek" }, "stem_greek": { "type":"skroutz_stem_greek" }, "greeklish_analysis":{ "type": "greeklish", "max_expansions": 15 } } } }, "mappings": { "shooters": { "properties": { "activated": { "type": "boolean" }, "company": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "description": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "email": { "type": "string" }, "name": { "type": "string", "analyzer": "stem_analyzer", "fields": { "english": { "type": "string", "analyzer": "english" }, "greeklish": { "type": "string", "analyzer": "greeklish_analyzer" } } }, "username": { "type": "string" } } } } }

ERROR:

{ "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Unknown filter type [greeklish] for [greeklish_analysis]" } ], "type": "illegal_argument_exception", "reason": "Unknown filter type [greeklish] for [greeklish_analysis]" }, "status": 400 }

@mixalistzikas
Copy link
Author

"greeklish" => "skroutz_greeklish"

Is that right?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant