mirror of
https://github.com/elastic/elasticsearch.git
synced 2025-04-22 06:07:55 -04:00
This adds `hamming` distances, the pop-count of `xor` byte vectors as a first class citizen in painless. For byte vectors, this means that we can compute hamming distances via script_score (aka, brute-force). The implementation of `hamming` is the same that is available in Lucene, and when lucene 9.11 is merged, we should update our logic where applicable to utilize it. NOTE: this does not yet add hamming distance as a metric for indexed vectors. This will be a future PR after the Lucene 9.11 upgrade. |
||
---|---|---|
.. | ||
painless-api-reference | ||
painless-contexts | ||
painless-guide | ||
painless-lang-spec | ||
index.asciidoc | ||
painless-api-reference.asciidoc | ||
painless-contexts.asciidoc | ||
painless-guide.asciidoc | ||
painless-lang-spec.asciidoc | ||
redirects.asciidoc |