# AshJsonApi: Filter by similiarity

**URL:** <https://forum.elixirforum.com/t/ashjsonapi-filter-by-similiarity/60504>\
**Category:** Questions\
**Tags:** json-api, ash, ash-json-api\
**Created:** [December 21, 2023, 7:11pm UTC](https://forum.elixirforum.com/t/ashjsonapi-filter-by-similiarity/60504 "2023-12-21T19:11:50Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![gordoneliel](https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/gordoneliel/32/30383_2.png) [@gordoneliel](https://forum.elixirforum.com/u/gordoneliel)\
**Post date:** [January 20, 2024, 5:38am UTC](https://forum.elixirforum.com/t/ashjsonapi-filter-by-similiarity/60504/8 "2024-01-20T05:38:57Z")

</div>

That worked! Another question on calculations…

Does this work on other calculated fields? For example, I have a `first_name` and `last_name` field, but a `full_name` calculation. Do I have to store the `full_name` for this to work? Or can I compose the `trigram_similarity` on multiple fields?

As far as I remember, the trigram similarity works by creating trigrams of the stored fields? Not sure if calculations would work here

---

_[View the full topic](https://forum.elixirforum.com/t/ashjsonapi-filter-by-similiarity/60504)._
