# What is the best way to manage an index for exact search and normal search

**URL:** <https://discuss.elastic.co/t/what-is-the-best-way-to-manage-an-index-for-exact-search-and-normal-search/298513>\
**Category:** Elasticsearch\
**Created:** [March 1, 2022, 1:28pm UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-manage-an-index-for-exact-search-and-normal-search/298513 "2022-03-01T13:28:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Leo\_Baby\_Jacob](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/leo_baby_jacob/32/87425_2.png) [@Leo\_Baby\_Jacob](https://discuss.elastic.co/u/Leo_Baby_Jacob)\
**Post date:** [March 1, 2022, 1:28pm UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-manage-an-index-for-exact-search-and-normal-search/298513/1 "2022-03-01T13:28:36Z")

</div>

I have a use case where I need normal match\_all search i.e it shows me related documents with fuzzy results also, however I need a specific search which needs to do a term query.  
My mappings are mostly text type:

```auto
"project_title": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
      "projectabstract": {
        "type": "text",
        "fields": {
          "keyword": {
            "type": "keyword",
            "ignore_above": 256
          }
        }
      },
"task_number": {
        "type": "keyword",
        "normalizer": "lowercase_normalizer"
      }

```

I did try exact search using lowercase normalizer by making task\_number a keyword, but found out that I cant do a fuzzy search because it is a keyword. Since lowercase normalizer works only on keywords, if I convert the fields to keyword I cannot get search results I get from type: text. Should I maintain two indexes one with text and another of type keyword or is there a better alternative to it ?

---

<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:** [March 29, 2022, 1:29pm UTC](https://discuss.elastic.co/t/what-is-the-best-way-to-manage-an-index-for-exact-search-and-normal-search/298513/2 "2022-03-29T13:29:14Z")

</div>

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