# Query tags on binded property values

**URL:** <https://forum.inductiveautomation.com/t/query-tags-on-binded-property-values/55154>\
**Category:** Ignition\
**Created:** [January 19, 2022, 8:11am UTC](https://forum.inductiveautomation.com/t/query-tags-on-binded-property-values/55154 "2022-01-19T08:11:54Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![louagejasper](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/louagejasper/32/86311_2.png) [@louagejasper](https://forum.inductiveautomation.com/u/louagejasper)\
**Post date:** [January 19, 2022, 8:11am UTC](https://forum.inductiveautomation.com/t/query-tags-on-binded-property-values/55154/1 "2022-01-19T08:11:54Z")

</div>

Hi,

We have created a search functionality for a customer. We allow searching on the tagname and on the tooltip property. We use following query for that and query the internal Ignition database:

```auto
WITH RECURSIVE sub_tree(id, folderid, name, relative_depth) AS (
				  SELECT substr(tc.ID, 0, 37) AS id, substr(tc.folderid, 0, 37) AS folderid, tc.name, 1 AS relative_depth
				  FROM TAGCONFIG tc
				  WHERE tc.ID = substr(?, 0, 37) 			
				  UNION ALL
				  SELECT substr(tc2.id, 0, 37) as id, substr(tc2.folderid, 0, 37) AS folderid, tc2.name, st.relative_depth + 1
				  FROM TAGCONFIG tc2, sub_tree st
				  WHERE tc2.id = st.folderid
				)
				SELECT name FROM sub_tree;

```

This works and allows us to search the tooltip. However, when we bind the property to a parameter, we get this as a result:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/c/d/cda9cdc08e71e27c041f73be08dccf189622a593.png)

So we are not able to search on the actual value of the property. I’m wondering what the best approach is for this.

- Are there more easy ways to search tag properties in a more clear way?
- Should we maybe just have all tags in our own database, sync the database periodically and do searches from there?

I also heard IA is building a better tag browser experience. What can we exactly expect from this? Would this completely cover my challenges here? Is there any documentation on what’s coming?

Jasper
