# CMS Search Filter on longer string

**URL:** https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878
**Category:** Attributes
**Created:** [September 5, 2023, 7:37am UTC](https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878 "2023-09-05T07:37:15Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![oyvind](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/oyvind/32/791_2.png) [@oyvind](https://forum.finsweet.com/u/oyvind)
#### Post date: [September 5, 2023, 7:37am UTC](https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878/1 "2023-09-05T07:37:15Z")

</div>

Hi there!

I have set up CMS Filter on this page:

> **[Forfatterkatalogen – Finn ein forfattar!](https://www.forfattersentrum.no/forfatterkatalogen)**
>
> I Forfatterkatalogen finn du over 1800 forfattarar som tilbyr foredrag, opplesingar, bokbad, skrivekurs og mykje meir!

With this search filter you can search for author names, themes and books. It works fine, but there is one mayor issue however I am trying to wrap my head around.

Many authors have middle names and searching for such an author can be really bad UX if you do not know their middle-name. Let me share one example with the author “Elin Folgerø Styve”.

She is listed in the list when I search for

- Elin
- Styve
- Folgerø
- Elin Folgerø Styve

But she is not shown if I search for “Elin Styve” which would be how most users would search for her name as her middle name is not well known.

The filtering should be set to show “any”. But I am guessing that this does not work properly because of her full name is set in one field? The search would work properly if we set one field for “firstname”, one field for “middlename” and one field for “lastname”?

Read-only link:  
[https://preview.webflow.com/preview/norsk-forfattersentrum?utm\_medium=preview\_link&utm\_source=designer&utm\_content=norsk-forfattersentrum&preview=f6a691ab1e6bed7fb26ce0060afc06ad&pageId=6319d9b9ab8fa234aab554a2&workflow=preview](https://preview.webflow.com/preview/norsk-forfattersentrum?utm_medium=preview_link&utm_source=designer&utm_content=norsk-forfattersentrum&preview=f6a691ab1e6bed7fb26ce0060afc06ad&pageId=6319d9b9ab8fa234aab554a2&workflow=preview)

Best regards  
Øyvind Hermans

---

<div class="post-metadata">

### Author: ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)
#### Post date: [September 5, 2023, 10:59am UTC](https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878/2 "2023-09-05T10:59:20Z")

</div>

Hey @oyvind! I am afraid at the moment CMS Filter requires an exact match from the filters to the elements in the cards to return a result. What you are suggesting, dividing the name into three fields might work.

You can use the `*` Identifier for your input field to target all search fields in your CMS card.

---

<div class="post-metadata">

### Author: ![oyvind](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/oyvind/32/791_2.png) [@oyvind](https://forum.finsweet.com/u/oyvind)
#### Post date: [September 5, 2023, 11:04am UTC](https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878/3 "2023-09-05T11:04:37Z")

</div>

Hi Luis! Thanks for the reply! The input field is already set to target all search fields. I guess trying out the three fields theory might be worth a shot then 🙂

 ![Screenshot 2023-09-05 at 13.01.37](https://europe1.discourse-cdn.com/flex013/uploads/finsweet1/original/2X/e/eb28a961e3e969cc1acd9b480f3b05d16f6ad141.jpeg)

---

<div class="post-metadata">

### Author: ![Support-Luis](https://dub1.discourse-cdn.com/flex013/user_avatar/forum.finsweet.com/support-luis/32/53_2.png) [@Support-Luis](https://forum.finsweet.com/u/Support-Luis)
#### Post date: [September 5, 2023, 1:00pm UTC](https://forum.finsweet.com/t/cms-search-filter-on-longer-string/1878/4 "2023-09-05T13:00:50Z")

</div>

Let me know how it goes!
