elasticsearch/docs/painless/painless-api-reference
Benjamin Trent acc99302c6
Adding hamming distance function to painless for dense_vector fields (#109359)
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.
2024-06-18 03:41:20 +10:00
..
painless-api-reference-aggregation-selector Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-aggs Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-aggs-combine Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-aggs-init Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-aggs-map Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-aggs-reduce Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-analysis Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-bucket-aggregation Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-field Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-filter Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-ingest Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-interval Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-moving-function Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-number-sort Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-painless-test Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-processor-conditional Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-score Adding hamming distance function to painless for dense_vector fields (#109359) 2024-06-18 03:41:20 +10:00
painless-api-reference-script-heuristic Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-shared Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-similarity Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-similarity-weight Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-string-sort Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-template Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-terms-set Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-update Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-watcher-condition Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-watcher-transform Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
painless-api-reference-xpack-template Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00
index.asciidoc Scripting: Update ctx docs with sha augment (#59719) 2020-07-16 12:51:47 -05:00