# Analyzed vs not\_analyzed

**URL:** <https://discuss.elastic.co/t/analyzed-vs-not-analyzed/59072>\
**Category:** Elasticsearch\
**Created:** [August 26, 2016, 7:21pm UTC](https://discuss.elastic.co/t/analyzed-vs-not-analyzed/59072 "2016-08-26T19:21:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Zfs](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/zfs/32/13370_2.png) [@Zfs](https://discuss.elastic.co/u/Zfs)\
**Post date:** [August 26, 2016, 7:21pm UTC](https://discuss.elastic.co/t/analyzed-vs-not-analyzed/59072/1 "2016-08-26T19:21:33Z")

</div>

By default, I have a field that is set to not\_analyzed. The field contains a string but when using Kibana to do generic searches I have to type the below to find "something" in the string:

```
fieldLog:(*something*)

```

I'm thinking that if I create this as analyzed then searching will be a lot simpler?

Does that mean I should use .RAW as a not\_analyzed field and fieldLog as Analyzed?

Is there a link on how to enable this?

Thanks

---

<div class="post-metadata">

**Author:** ![anhlqn](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/anhlqn/32/5454_2.png) [@anhlqn](https://discuss.elastic.co/u/anhlqn)\
**Post date:** [August 27, 2016, 5:16am UTC](https://discuss.elastic.co/t/analyzed-vs-not-analyzed/59072/2 "2016-08-27T05:16:29Z")

</div>

Link to raw field: [String Sorting and Multifields | Elasticsearch: The Definitive Guide [2.x] | Elastic](https://www.elastic.co/guide/en/elasticsearch/guide/current/multi-fields.html)

> [@Zfs](#):
>
> I'm thinking that if I create this as analyzed then searching will be a lot simpler?

Yes, then no need for wildcard unless you search for part of a word like `penc*`

> [@Zfs](#):
>
> Does that mean I should use .RAW as a not\_analyzed field and fieldLog as Analyzed?

Yes if you will do aggregation on `fieldLog`. If you use only Kibana, it may be more convenient for end users to let `fieldLog` as `not_analyzed` and include it in the `_all` field so that users do not have to use this syntax `field:value` to search.

---

<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 5, 2017, 10:24pm UTC](https://discuss.elastic.co/t/analyzed-vs-not-analyzed/59072/3 "2017-07-05T22:24:41Z")

</div>


