# Partial matching ETS data

**URL:** <https://forum.elixirforum.com/t/partial-matching-ets-data/44602>\
**Category:** Questions\
**Tags:** ets, pattern-matching\
**Created:** [December 16, 2021, 2:17pm UTC](https://forum.elixirforum.com/t/partial-matching-ets-data/44602 "2021-12-16T14:17:02Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

**Author:** ![mpope](https://forum.elixirforum.com/letter_avatar_proxy/v4/letter/m/71c47a/32.png) [@mpope](https://forum.elixirforum.com/u/mpope)\
**Post date:** [December 16, 2021, 8:07pm UTC](https://forum.elixirforum.com/t/partial-matching-ets-data/44602/6 "2021-12-16T20:07:16Z")

</div>

If you are feeling ambitious, you could create a probabilistic datastructure like a [Bloom filter](https://github.com/gmcabrita/bloomex) or [xor\_filter](https://github.com/mpope9/exor_filter) for each entry’s possible matches, like adding `['c', 'ch', 'char', 'charl', charle', 'charles']`, then iterate over each filter to check if the partial match is in the filter. This would be for very simple matching, but if your use case doesn’t support complex filters or ranking matches based on the ‘best match’ then it could work. There is a small chance of false positives. I’ve used this before for very simple first + last name matches for ~2k static values and it worked well enough.

---

_[View the full topic](https://forum.elixirforum.com/t/partial-matching-ets-data/44602)._
