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

How to use copy_bits_to operator?

Open Fred12 opened this issue 5 years ago • 2 comments

I was using minhash plugin with kibana, but I couldnt retrieve the bits keyword field in GET...

PUT /test_minhash_test { "index":{ "analysis":{ "analyzer":{ "minhash_analyzer":{ "type":"custom", "tokenizer":"standard", "filter":["minhash"] } } } } }

PUT /test_minhash_test/_doc/_mapping { "_doc":{ "properties":{ "message": { "type":"text", "copy_to":"minhash_value" }, "minhash_value":{ "type":"minhash", "minhash_analyzer":"minhash_analyzer", "store":true, "copy_bits_to": "content_minhash_bits" }, "content_minhash_bits": { "type": "keyword", "store":true } } } }

GET /test_minhash_test/_doc/_search/?pretty&stored_fields=*

What am I doing wrong?

Fred12 avatar Mar 18 '19 09:03 Fred12

here is my fess.log: fess.log

Fred12 avatar Mar 18 '19 12:03 Fred12

any ideas how to retrieve the content_minhash_bits field? I am stuck in getting the field ? What am I doing wrong?

Fred12 avatar Mar 19 '19 11:03 Fred12

I guess this issue can be closed since copy_bits_to was removed in 2021 (don't know why).

karlkovaciny avatar Apr 29 '24 21:04 karlkovaciny

Elasticsearch often changes their interfaces, so it's difficult to keep the copy_bits_to setting.

marevol avatar May 01 '24 02:05 marevol