# How to use the stop words in search

**URL:** <https://discuss.elastic.co/t/how-to-use-the-stop-words-in-search/9538>\
**Category:** Elasticsearch\
**Created:** [November 3, 2012, 5:27am UTC](https://discuss.elastic.co/t/how-to-use-the-stop-words-in-search/9538 "2012-11-03T05:27:14Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![narinder\_izap](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/narinder_izap/32/803_2.png) [@narinder\_izap](https://discuss.elastic.co/u/narinder_izap)\
**Post date:** [November 3, 2012, 5:27am UTC](https://discuss.elastic.co/t/how-to-use-the-stop-words-in-search/9538/1 "2012-11-03T05:27:14Z")

</div>

Hi,  
I am using standard, simple or keyword analyzers depending upon the  
search types. In case of standard or simple analyzers, when I am searching  
some keywords which are the stop words(e.g a, be, was, on etc), the search  
stops, as per expected behave. Now I want to use the same analyzers but  
these stop words should also be searchable as I am sure the fields being  
search will never contain these kind of grammar words.

```
       Can anyone please help me ignoring the stop words being filtered 

```

out? I need to search them too.

--

---

<div class="post-metadata">

**Author:** ![simonw\_2](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/simonw_2/32/1130_2.png) [@simonw\_2](https://discuss.elastic.co/u/simonw_2)\
**Post date:** [November 3, 2012, 1:50pm UTC](https://discuss.elastic.co/t/how-to-use-the-stop-words-in-search/9538/2 "2012-11-03T13:50:14Z")

</div>

you simply need to build your own analyzer  
([Elasticsearch Platform — Find real-time answers at scale | Elastic](http://www.elasticsearch.org/guide/reference/index-modules/analysis/custom-analyzer.html))  
something like this:

```
        standard_no_stop :
            type : custom
            tokenizer : standard
            filter : [standard, lowercase_filter]

```

simple analyzer doesn't do stopwords no?

hope that helps

simon  
On Saturday, November 3, 2012 6:27:15 AM UTC+1, Narinder Kaur wrote:

> Hi,  
> I am using standard, simple or keyword analyzers depending upon the  
> search types. In case of standard or simple analyzers, when I am searching  
> some keywords which are the stop words(e.g a, be, was, on etc), the search  
> stops, as per expected behave. Now I want to use the same analyzers but  
> these stop words should also be searchable as I am sure the fields being  
> search will never contain these kind of grammar words.
> 
> ```
> Can anyone please help me ignoring the stop words being 
> 
> ```
> 
> filtered out? I need to search them too.

--

---

<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 6, 2017, 3:06am UTC](https://discuss.elastic.co/t/how-to-use-the-stop-words-in-search/9538/3 "2017-07-06T03:06:19Z")

</div>


