# Return search results by custom data attribute

**URL:** <https://discourse.devontechnologies.com/t/return-search-results-by-custom-data-attribute/86963>\
**Category:** Tips\
**Created:** [May 21, 2026, 2:53pm UTC](https://discourse.devontechnologies.com/t/return-search-results-by-custom-data-attribute/86963 "2026-05-21T14:53:38Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![anton](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@anton](https://discourse.devontechnologies.com/u/anton)\
**Post date:** [May 21, 2026, 2:53pm UTC](https://discourse.devontechnologies.com/t/return-search-results-by-custom-data-attribute/86963/1 "2026-05-21T14:53:38Z")

</div>

I was not able to find the instructions in the manual and on the forum, so I’m leaving it here, just in case others need to also reference a custom data attribute in their search queries.

My example: I have a custom data attribute called “Source”:

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/d/9/d96d2d4dde7cfa70cd780801c5d13759048370e6.jpeg)

to use it in the search results:

`mdsource: [source_name]`

that is, you would add “md” to your custom data identifier name and use it in search.

hope this helps others!

---

<div class="post-metadata">

**Author:** ![BLUEFROG](https://discourse.devontechnologies.com/user_avatar/discourse.devontechnologies.com/bluefrog/32/135_2.png) [@BLUEFROG](https://discourse.devontechnologies.com/u/BLUEFROG)\
**Post date:** [May 21, 2026, 3:07pm UTC](https://discourse.devontechnologies.com/t/return-search-results-by-custom-data-attribute/86963/2 "2026-05-21T15:07:44Z")

</div>

Thanks for sharing your finding and indeed using the `md` prefixing is the case.

This is also documented in the _Appendix \> Search Prefixes \> Custom Metadata_.

 ![image](https://devontech-discourse.s3.dualstack.us-east-1.amazonaws.com/uploads/original/3X/5/a/5a4c376e96693bee5f7f38ddf52102d7f7377268.png)

---

<div class="post-metadata">

**Author:** ![anton](https://discourse.devontechnologies.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@anton](https://discourse.devontechnologies.com/u/anton)\
**Post date:** [May 21, 2026, 3:10pm UTC](https://discourse.devontechnologies.com/t/return-search-results-by-custom-data-attribute/86963/3 "2026-05-21T15:10:35Z")

</div>

Ahh… thanks, Jim! Somehow, it still slipped away from me! But now, hopefully, everyone will be able to find it 🙂
