# Limit the scope of a search to just a particular directory on your site?

**URL:** <https://community.swiftype.com/t/limit-the-scope-of-a-search-to-just-a-particular-directory-on-your-site/587>\
**Category:** General\
**Created:** [February 21, 2018, 12:12am UTC](https://community.swiftype.com/t/limit-the-scope-of-a-search-to-just-a-particular-directory-on-your-site/587 "2018-02-21T00:12:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![sy1913](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sy1913](https://community.swiftype.com/u/sy1913)\
**Post date:** [February 21, 2018, 12:12am UTC](https://community.swiftype.com/t/limit-the-scope-of-a-search-to-just-a-particular-directory-on-your-site/587/1 "2018-02-21T00:12:47Z")

</div>

Is there a way to have a search limited to a scope of just searching a particular directory?

For example, we want to have a search field on the front page where users have the radio button options to search the entire site or just search the News section. If we have a News section on our site: [site.com/news](http://site.com/news)

Does this actually require purchasing multiple engines? One for [oursitedotcom]/ and another engine for [oursitedotcom]/news ?

---

<div class="post-metadata">

**Author:** ![smiller](https://avatars.discourse-cdn.com/v4/letter/s/8c91f0/32.png) [@smiller](https://community.swiftype.com/u/smiller)\
**Post date:** [March 14, 2018, 9:33pm UTC](https://community.swiftype.com/t/limit-the-scope-of-a-search-to-just-a-particular-directory-on-your-site/587/2 "2018-03-14T21:33:36Z")

</div>

You could store each directory in the path of the page into an enum field in Swiftype, and then filter based on that field.

---

<div class="post-metadata">

**Author:** ![sy1913](https://avatars.discourse-cdn.com/v4/letter/s/35a633/32.png) [@sy1913](https://community.swiftype.com/u/sy1913)\
**Post date:** [March 28, 2018, 12:37am UTC](https://community.swiftype.com/t/limit-the-scope-of-a-search-to-just-a-particular-directory-on-your-site/587/3 "2018-03-28T00:37:38Z")

</div>

Yep I think I figured it out. Thanks, this helps.
