# Add extra stopwords

**URL:** <https://discuss.elastic.co/t/add-extra-stopwords/15242>\
**Category:** Elasticsearch\
**Created:** [January 15, 2014, 8:10am UTC](https://discuss.elastic.co/t/add-extra-stopwords/15242 "2014-01-15T08:10:49Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Khoa\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Khoa\_Nguyen](https://discuss.elastic.co/u/Khoa_Nguyen)\
**Post date:** [January 15, 2014, 8:10am UTC](https://discuss.elastic.co/t/add-extra-stopwords/15242/1 "2014-01-15T08:10:49Z")

</div>

_Environment & setup_

Mac OSX  
ES 0.90.7 installed via homebrew

_Steps_

update config

# /usr/local/Cellar/elasticsearch/0.90.7/config/elasticsearch.yml

# add more Stopwords to default standard analyzer

index:  
analysis:  
analyzer:  
standard:  
type: standard  
stopwords: [http, t.co]

restart ES

curl -XGET 'localhost:9200/\_analyze?analyzer=standard&pretty' -d 'this is a  
test http'

=\> {

"tokens" : [ {

```
"token" : "test",

"start_offset" : 10,

"end_offset" : 14,

"type" : "<ALPHANUM>",

"position" : 4

```

}, {

```
"token" : "http",

"start_offset" : 15,

"end_offset" : 19,

"type" : "<ALPHANUM>",

"position" : 5

```

} ]

}

_Expectation_

http shouldn't not be indexed

Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/defed7ba-bcb9-4112-9e85-4957d0a9e34c%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/defed7ba-bcb9-4112-9e85-4957d0a9e34c%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![Khoa\_Nguyen](https://avatars.discourse-cdn.com/v4/letter/k/54ee81/32.png) [@Khoa\_Nguyen](https://discuss.elastic.co/u/Khoa_Nguyen)\
**Post date:** [January 15, 2014, 8:12am UTC](https://discuss.elastic.co/t/add-extra-stopwords/15242/2 "2014-01-15T08:12:08Z")

</div>

whole purpose is to remove stopword from appearing in term facets

On Wednesday, 15 January 2014 19:10:49 UTC+11, Khoa Nguyen wrote:

> _Environment & setup_
> 
> Mac OSX  
> ES 0.90.7 installed via homebrew
> 
> _Steps_
> 
> update config
> 
> # /usr/local/Cellar/elasticsearch/0.90.7/config/elasticsearch.yml
> 
> # add more Stopwords to default standard analyzer
> 
> index:  
> analysis:  
> analyzer:  
> standard:  
> type: standard  
> stopwords: [http, [t.co](http://t.co)]
> 
> restart ES
> 
> curl -XGET 'localhost:9200/\_analyze?analyzer=standard&pretty' -d 'this is  
> a test http'
> 
> =\> {
> 
> "tokens" : [ {
> 
> ```
> "token" : "test",
> 
> "start_offset" : 10,
> 
> "end_offset" : 14,
> 
> "type" : "<ALPHANUM>",
> 
> "position" : 4
> 
> ```
> 
> }, {
> 
> ```
> "token" : "http",
> 
> "start_offset" : 15,
> 
> "end_offset" : 19,
> 
> "type" : "<ALPHANUM>",
> 
> "position" : 5
> 
> ```
> 
> } ]
> 
> }
> 
> _Expectation_
> 
> http shouldn't not be indexed
> 
> Thanks.

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/315e5894-8501-4d4c-9523-7eb049893930%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/315e5894-8501-4d4c-9523-7eb049893930%40googlegroups.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<div class="post-metadata">

**Author:** ![spinscale](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/spinscale/32/25011_2.png) [@spinscale](https://discuss.elastic.co/u/spinscale)\
**Post date:** [January 16, 2014, 9:04am UTC](https://discuss.elastic.co/t/add-extra-stopwords/15242/3 "2014-01-16T09:04:36Z")

</div>

Hey,

try changing

index:  
analysis:  
analyzer:  
standard:

to

index:  
analysis:  
analyzer:  
default:

> **[Elasticsearch Platform — Find real-time answers at scale](https://www.elastic.co)**
>
> Power insights and outcomes with the Elasticsearch Platform and AI. See into your data and find answers that matter with enterprise solutions designed to help you build, observe, and protect. Try Elasticsearch free today.

--Alex

On Wed, Jan 15, 2014 at 9:12 AM, Khoa Nguyen [huu.khoa.nguyen@gmail.com](mailto:huu.khoa.nguyen@gmail.com)wrote:

> whole purpose is to remove stopword from appearing in term facets
> 
> On Wednesday, 15 January 2014 19:10:49 UTC+11, Khoa Nguyen wrote:
> 
> > _Environment & setup_
> > 
> > Mac OSX  
> > ES 0.90.7 installed via homebrew
> > 
> > _Steps_
> > 
> > update config
> > 
> > # /usr/local/Cellar/elasticsearch/0.90.7/config/elasticsearch.yml
> > 
> > # add more Stopwords to default standard analyzer
> > 
> > index:  
> > analysis:  
> > analyzer:  
> > standard:  
> > type: standard  
> > stopwords: [http, [t.co](http://t.co)]
> > 
> > restart ES
> > 
> > curl -XGET 'localhost:9200/\_analyze?analyzer=standard&pretty' -d 'this  
> > is a test http'
> > 
> > =\> {
> > 
> > "tokens" : [ {
> > 
> > ```
> > "token" : "test",
> > 
> > "start_offset" : 10,
> > 
> > "end_offset" : 14,
> > 
> > "type" : "<ALPHANUM>",
> > 
> > "position" : 4
> > 
> > ```
> > 
> > }, {
> > 
> > ```
> > "token" : "http",
> > 
> > "start_offset" : 15,
> > 
> > "end_offset" : 19,
> > 
> > "type" : "<ALPHANUM>",
> > 
> > "position" : 5
> > 
> > ```
> > 
> > } ]
> > 
> > }
> > 
> > _Expectation_
> > 
> > http shouldn't not be indexed
> > 
> > Thanks.
> 
> --  
> You received this message because you are subscribed to the Google Groups  
> "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an  
> email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit  
> [https://groups.google.com/d/msgid/elasticsearch/315e5894-8501-4d4c-9523-7eb049893930%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/315e5894-8501-4d4c-9523-7eb049893930%40googlegroups.com)  
> .
> 
> For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/CAGCwEM\_CVF\_KP861\_vSQPswYeG7ty-V9xiV8Age%3DvKojeM\_9Bw%40mail.gmail.com](https://groups.google.com/d/msgid/elasticsearch/CAGCwEM_CVF_KP861_vSQPswYeG7ty-V9xiV8Age%3DvKojeM_9Bw%40mail.gmail.com).  
For more options, visit [https://groups.google.com/groups/opt\_out](https://groups.google.com/groups/opt_out).

---

<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, 1:56am UTC](https://discuss.elastic.co/t/add-extra-stopwords/15242/4 "2017-07-06T01:56:27Z")

</div>


