# Using English analyzer filtered out some words

**URL:** <https://discuss.elastic.co/t/using-english-analyzer-filtered-out-some-words/164643>\
**Category:** Elasticsearch\
**Created:** [January 17, 2019, 1:53pm UTC](https://discuss.elastic.co/t/using-english-analyzer-filtered-out-some-words/164643 "2019-01-17T13:53:35Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denk/32/39881_2.png) [@denk](https://discuss.elastic.co/u/denk)\
**Post date:** [January 17, 2019, 1:53pm UTC](https://discuss.elastic.co/t/using-english-analyzer-filtered-out-some-words/164643/1 "2019-01-17T13:53:35Z")

</div>

Hey guys!

Learning Elastic at the moment and have a question about stopwords and analyzers.  
I'm using Java API and want to use English analyzer to filter out some articles and other redundant words from the search.

```
SearchRequest searchRequest = new SearchRequest(index.toLowerCase());
        SearchSourceBuilder searchSourceBuilder = new SearchSourceBuilder();
        searchSourceBuilder.query(QueryBuilders.simpleQueryStringQuery(queryString)
                .analyzer("english")
                .field("text")
                .fields(getBoostedFields()));
        searchRequest.source(searchSourceBuilder);
SearchResponse searchResponse = client.search(searchRequest, RequestOptions.DEFAULT);

```

And I don't really understand the logic that happens. I expected analyzer to filter out just some words like "the, and, or..." but I found that even if I put, for example, "Apple" in the field like

> "text":"Apple apple apple"

I don't have any results and the same with some other words but at the same time, it works with some.  
Could someone explain this logic to me, please? Or give a source I can read about this behaviour and how to tune it?

---

<div class="post-metadata">

**Author:** ![denk](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/denk/32/39881_2.png) [@denk](https://discuss.elastic.co/u/denk)\
**Post date:** [January 17, 2019, 3:04pm UTC](https://discuss.elastic.co/t/using-english-analyzer-filtered-out-some-words/164643/2 "2019-01-17T15:04:35Z")

</div>

Looks like _stop_ analyzer helps but still don't understand the behaviour of the language analyzer

---

<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:** [February 14, 2019, 3:04pm UTC](https://discuss.elastic.co/t/using-english-analyzer-filtered-out-some-words/164643/3 "2019-02-14T15:04:38Z")

</div>

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