# Analyze case sensitive/insensitive

**URL:** <https://discuss.elastic.co/t/analyze-case-sensitive-insensitive/108946>\
**Category:** Elasticsearch\
**Created:** [November 24, 2017, 12:13am UTC](https://discuss.elastic.co/t/analyze-case-sensitive-insensitive/108946 "2017-11-24T00:13:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anthonio\_Martinez](https://avatars.discourse-cdn.com/v4/letter/a/46a35a/32.png) [@Anthonio\_Martinez](https://discuss.elastic.co/u/Anthonio_Martinez)\
**Post date:** [November 24, 2017, 12:13am UTC](https://discuss.elastic.co/t/analyze-case-sensitive-insensitive/108946/1 "2017-11-24T00:13:41Z")

</div>

Hello,

I'm new to the forum, I have to ask for help to solve a problem, I have an "analyzer" created in the following way that will leave you lines below, however, I need it to work as follows:

1.- Perform the search of certain words in a text string ignoring the insensitive case and accents in the subdocument "Content.content" (currently works).

2.- The same field "contens.content" can search for text with a sensitive case, respecting the values ​​of the text (I can not return anything).

```
​{
​ "template": "pdfscrapy*",
  "settings": {
    "analysis": {
      "analyzer": {
        "folding": {
          "tokenizer": "standard",
          "filter": [
            "lowercase",
            "asciifolding"
          ]
        }
      }
    }
  },
  "mappings": {
    "intranet": {
      "properties": {
        "content": {
          "type": "string",
          "analyzer": "standard"
        },
        "contents": {
          "type": "nested",
          "properties": {
            "content": {
              "type": "string",
              "analyzer": "folding"
            }
          }
        }
      }
    }
  }
}​

```

Thanks for the support

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [November 24, 2017, 6:19am UTC](https://discuss.elastic.co/t/analyze-case-sensitive-insensitive/108946/2 "2017-11-24T06:19:05Z")

</div>

Please format your code using `</>` icon as explained in [this guide](https://discuss.elastic.co/t/about-the-elasticsearch-category/21). It will make your post more readable.

Or use markdown style like:

````
```
CODE
```

````

So? What is the problem?

Could you provide a full recreation script as described in

> [@About the Elasticsearch category](https://discuss.elastic.co/t/about-the-elasticsearch-category/21):
>
> The heart of the free and open Elastic Stack Elasticsearch is a distributed, RESTful search and analytics engine capable of addressing a growing number of use cases. As the heart of the Elastic Stack, it centrally stores your data for lightning fast search, fine‑tuned relevancy, and powerful analytics that scale with ease. warning PLEASE READ THIS SECTION IF IT'S YOUR FIRST POST Some useful links: [elasticsearch reference guide](http://www.elastic.co/guide/en/elasticsearch/reference/current/index.html)[elasticsearch user guide](http://www.elastic.co/guide/en/elasticsearch/guide/current/index.html)[elasticsearch plugins](https://www.elastic.co/guide/en/elasticsearch/plugins/current/index.html)[elasticsearch cl…](https://www.elastic.co/guide/en/elasticsearch/client/index.html)

It will help to better understand what you are doing.  
Please, try to keep the example as simple as possible.

---

<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:** [December 22, 2017, 6:19am UTC](https://discuss.elastic.co/t/analyze-case-sensitive-insensitive/108946/3 "2017-12-22T06:19:07Z")

</div>

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