# How to disable stopwords handling

**URL:** <https://discuss.elastic.co/t/how-to-disable-stopwords-handling/3027>\
**Category:** Elasticsearch\
**Created:** [June 17, 2010, 8:55pm UTC](https://discuss.elastic.co/t/how-to-disable-stopwords-handling/3027 "2010-06-17T20:55:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![colinsurprenant](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/colinsurprenant/32/14776_2.png) [@colinsurprenant](https://discuss.elastic.co/u/colinsurprenant)\
**Post date:** [June 17, 2010, 8:55pm UTC](https://discuss.elastic.co/t/how-to-disable-stopwords-handling/3027/1 "2010-06-17T20:55:25Z")

</div>

Hi,

I would like to disable the stopwords handling to actually index all  
stopwords from my documents.

Should this config work?

index :  
analysis :  
analyzer :  
default :  
type : standard  
stopwords : []

It does not seems to work in my tests - keeps using the default stopwords list.

What would be the correct way configure this? Workaround is to put a  
single dummy stopword in the list...

Thanks,  
Colin

---

<div class="post-metadata">

**Author:** ![kimchy](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/kimchy/32/44952_2.png) [@kimchy](https://discuss.elastic.co/u/kimchy)\
**Post date:** [June 17, 2010, 9:38pm UTC](https://discuss.elastic.co/t/how-to-disable-stopwords-handling/3027/2 "2010-06-17T21:38:00Z")

</div>

It should work, but currently there is a bug that if you specify empty  
array, it will use the default set of stop words. For now, you can specify a  
single really ridiculous stop word. I have just fixed it in master:  
[Analysis: When specifying empty array for stopwords, use an empty list for stopwords · Issue #230 · elastic/elasticsearch · GitHub](http://github.com/elasticsearch/elasticsearch/issues/issue/230).

-shay.banon

On Thu, Jun 17, 2010 at 11:55 PM, Colin Surprenant \<  
[colin.surprenant@gmail.com](mailto:colin.surprenant@gmail.com)\> wrote:

> Hi,
> 
> I would like to disable the stopwords handling to actually index all  
> stopwords from my documents.
> 
> Should this config work?
> 
> index :  
> analysis :  
> analyzer :  
> default :  
> type : standard  
> stopwords :
> 
> It does not seems to work in my tests - keeps using the default stopwords  
> list.
> 
> What would be the correct way configure this? Workaround is to put a  
> single dummy stopword in the list...
> 
> Thanks,  
> Colin

---

<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, 4:23am UTC](https://discuss.elastic.co/t/how-to-disable-stopwords-handling/3027/3 "2017-07-06T04:23:13Z")

</div>


