# None of these words - syntax

**URL:** <https://discuss.elastic.co/t/none-of-these-words-syntax/31248>\
**Category:** Elasticsearch\
**Created:** [September 28, 2015, 9:51am UTC](https://discuss.elastic.co/t/none-of-these-words-syntax/31248 "2015-09-28T09:51:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![evvo](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@evvo](https://discuss.elastic.co/u/evvo)\
**Post date:** [September 28, 2015, 9:51am UTC](https://discuss.elastic.co/t/none-of-these-words-syntax/31248/1 "2015-09-28T09:51:52Z")

</div>

i want to incorporate an additional textbox that allows users to choose words they want to have ignored in the results (like on google advanced search - none of these words)

is there a search filter / query option to handle this?

i would need to plug it in to the existing default search

---

<div class="post-metadata">

**Author:** ![warkolm](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/warkolm/32/39224_2.png) [@warkolm](https://discuss.elastic.co/u/warkolm)\
**Post date:** [September 28, 2015, 10:20am UTC](https://discuss.elastic.co/t/none-of-these-words-syntax/31248/2 "2015-09-28T10:20:24Z")

</div>

Depends on how you are doing the initial query, but you can do NOT/- using simple query - [https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html](https://www.elastic.co/guide/en/elasticsearch/reference/current/query-dsl-simple-query-string-query.html)

---

<div class="post-metadata">

**Author:** ![evvo](https://avatars.discourse-cdn.com/v4/letter/e/dfb087/32.png) [@evvo](https://discuss.elastic.co/u/evvo)\
**Post date:** [September 28, 2015, 10:46am UTC](https://discuss.elastic.co/t/none-of-these-words-syntax/31248/3 "2015-09-28T10:46:44Z")

</div>

ok im utilising NEST within a C# project to do my search

so where i have -

a.Match(m =\> m.OnField("\_all").Query(m\_strSearchQuery))

- to do my existing search....

how would i access the simple search query and flag option to add to this with my "none of these words" search string?

---

<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:** [July 5, 2017, 11:47pm UTC](https://discuss.elastic.co/t/none-of-these-words-syntax/31248/4 "2017-07-05T23:47:49Z")

</div>


