# Can I combine delimited\_payload\_filter and min\_hash?

**URL:** <https://discuss.elastic.co/t/can-i-combine-delimited-payload-filter-and-min-hash/103059>\
**Category:** Elasticsearch\
**Created:** [October 6, 2017, 6:38pm UTC](https://discuss.elastic.co/t/can-i-combine-delimited-payload-filter-and-min-hash/103059 "2017-10-06T18:38:37Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pkmital](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/pkmital/32/22714_2.png) [@pkmital](https://discuss.elastic.co/u/pkmital)\
**Post date:** [October 6, 2017, 6:38pm UTC](https://discuss.elastic.co/t/can-i-combine-delimited-payload-filter-and-min-hash/103059/1 "2017-10-06T18:38:37Z")

</div>

Hi there,

I'm trying to index an array of floating point values representing features, and be able to perform more\_like\_this queries to find similar documents that share similar floating point features in a multidimensional array of features. My features are something like 300 dimensions of floating point values, and their order matters.

To try and find similar features, I have a mapping that includes a text type to store the features. I analyze it with a custom analyzer, a whitespace tokenizer, and the filters: ["delimited\_payload\_filter", "min\_hash\_filter"]. My hope is that this can take a text type such as: "["0.18 -0.01 0.37 -0.24 -0.03 0.21 0.20 0.19 0.06", "-0.04 -0.20 0.18 0.09 -0.06 -0.29 -0.19", ...]", tokenize it with the positions and values of each element using the delimited\_payload\_filter, e.g.: "0.18|1 -0.01|2 ...", then hash these w/ min\_hash using buckets/hashes so that I get a meaningful locality sensitive hash that is able to index the values of features. I'm able to use the more\_like\_this query on this type just fine, but not entirely sure what is happening.

When I use explain=true, I'm getting a lot of information on the min\_hash value it matched, but what I'm not positive about is whether it is really using the _positions_ of the feature values it finds as part of the term vector, or if it is only using the token itself? In other words, is min\_hash using "0.18|1" as a token, or "0.18"?

Any help much appreciated!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [November 3, 2017, 6:38pm UTC](https://discuss.elastic.co/t/can-i-combine-delimited-payload-filter-and-min-hash/103059/2 "2017-11-03T18:38:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
