# Limiting Document Search

**URL:** <https://discuss.elastic.co/t/limiting-document-search/80541>\
**Category:** Elasticsearch\
**Created:** [March 29, 2017, 7:18pm UTC](https://discuss.elastic.co/t/limiting-document-search/80541 "2017-03-29T19:18:31Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![akraswant](https://avatars.discourse-cdn.com/v4/letter/a/aeb1de/32.png) [@akraswant](https://discuss.elastic.co/u/akraswant)\
**Post date:** [March 29, 2017, 7:18pm UTC](https://discuss.elastic.co/t/limiting-document-search/80541/1 "2017-03-29T19:18:32Z")

</div>

I have 2 questions related to document search:

1. If I have a mix of say, MS Word and pdf documents on a server and I want to restrict the search operation on some (not all) of these documents for a group of employees, is this doable?

2. If I have one MS Word or a pdf document on a server and I want to restrict the search operation on certain sections/parts of this one document, is this doable? How deep a search can go - is this controllable?

Thanks.

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [March 29, 2017, 7:32pm UTC](https://discuss.elastic.co/t/limiting-document-search/80541/2 "2017-03-29T19:32:12Z")

</div>

1. yes. If you have anything in your json doc which represents the owner or the group

2. no. But if you don't index full content but part of it as separated docs then you can filter

My 0.02 cents

---

<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:** [April 26, 2017, 7:32pm UTC](https://discuss.elastic.co/t/limiting-document-search/80541/3 "2017-04-26T19:32:13Z")

</div>

Closed on April 26, 2017, 7:32pm UTC

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