# Domain identifier only for one specific subdomain

**URL:** <https://discuss.elastic.co/t/domain-identifier-only-for-one-specific-subdomain/289689>\
**Category:** Elastic Search\
**Tags:** elastic-site-search\
**Created:** [November 19, 2021, 1:35pm UTC](https://discuss.elastic.co/t/domain-identifier-only-for-one-specific-subdomain/289689 "2021-11-19T13:35:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![iamvg](https://avatars.discourse-cdn.com/v4/letter/i/ecb155/32.png) [@iamvg](https://discuss.elastic.co/u/iamvg)\
**Post date:** [November 19, 2021, 1:35pm UTC](https://discuss.elastic.co/t/domain-identifier-only-for-one-specific-subdomain/289689/1 "2021-11-19T13:35:24Z")

</div>

In Swiftype site search, I am planning to use a domain identifier to filter results based on domain.  
I've added 3 subdomains under one Swiftype engine.

Using the below approach I am planning to add domain identifier for one of the Subdomain, can I add it only for one subdomain or do I need to add it for all the Subdomains?

[https://swiftype.com/documentation/site-search/guides/multiple-domains#filtering-domains](https://swiftype.com/documentation/site-search/guides/multiple-domains#filtering-domains)

---

<div class="post-metadata">

**Author:** ![Carlos\_D](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/carlos_d/32/126245_2.png) [@Carlos\_D](https://discuss.elastic.co/u/Carlos_D)\
**Post date:** [November 22, 2021, 11:40am UTC](https://discuss.elastic.co/t/domain-identifier-only-for-one-specific-subdomain/289689/2 "2021-11-22T11:40:49Z")

</div>

HI @iamvg , welcome to the Elasticsearch community!

Using the approach you mention, you just need to add meta tags to domains that you are going to filter on in your searches.

That is, if you only need search results from one subdomain, you only need to add meta tags to that domain.

In case you need to filter so that only results from other subdomains are displayed, you will need to add meta tags for those subdomains.

I hope that I have answered your question. Let me know about the result!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [December 20, 2021, 11:41am UTC](https://discuss.elastic.co/t/domain-identifier-only-for-one-specific-subdomain/289689/3 "2021-12-20T11:41:38Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
