elasticsearch-minhash icon indicating copy to clipboard operation
elasticsearch-minhash copied to clipboard

Failed to find minhash filter in kibana Dev app

Open Fred12 opened this issue 5 years ago • 2 comments

Hello, after installing minhash filter in elasticsearch, I started kibana app and in the Dev tool, I copy&pasted the code to create the minhash filter mapping: curl -XPUT 'localhost:9200/my_index' -d '{ "index":{ "analysis":{ "analyzer":{ "minhash_analyzer":{ "type":"custom", "tokenizer":"standard", "filter":["minhash"] } } } } }'

But then, I got this error:

{ "error": { "root_cause": [ { "type": "illegal_argument_exception", "reason": "Custom Analyzer [minhash_analyzer] failed to find filter under name [minhash]" } ], "type": "illegal_argument_exception", "reason": "Custom Analyzer [minhash_analyzer] failed to find filter under name [minhash]" }, "status": 400 }

Fred12 avatar Mar 14 '19 11:03 Fred12

I think the plugin installation is failed.

marevol avatar Mar 14 '19 20:03 marevol

nope, the weirdo tutorial on this github page does not work, I used the code from this thread: https://github.com/codelibs/elasticsearch-minhash/issues/15

and got it to work, I am just trying to figure out how I can do a search query, or a "more_like_this" query on the min_hash field.. it just doesn't work because its not text or term and I cannot convert it to text/ term.. how would I normally do it?

Fred12 avatar Mar 14 '19 21:03 Fred12