# Store

**URL:** https://discuss.elastic.co/t/store/10100
**Category:** Elasticsearch
**Created:** [December 17, 2012, 10:04pm UTC](https://discuss.elastic.co/t/store/10100 "2012-12-17T22:04:46Z")
**Posts on this page:** 6
**Page:** 1

<div class="post-metadata">

### Author: ![Roman\_Yudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_yudin/32/2575_2.png) [@Roman\_Yudin](https://discuss.elastic.co/u/Roman_Yudin)
#### Post date: [December 17, 2012, 10:04pm UTC](https://discuss.elastic.co/t/store/10100/1 "2012-12-17T22:04:46Z")

</div>

Hi,

Is it possible dont store values of fleld like message, but to have an  
index on this field and have the ability to search for him?

fields in schema: message, date, link.  
search by: message full text.  
result of search: list of links and dates of messages.

--

---

<div class="post-metadata">

### Author: ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)
#### Post date: [December 17, 2012, 10:07pm UTC](https://discuss.elastic.co/t/store/10100/2 "2012-12-17T22:07:51Z")

</div>

Hello!

Yes it is possible. You can set 'store' property to 'no', and 'index' to 'analyzed' for such field.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

Hi,

Is it possible dont store values of fleld like message, but to have an index on this field and have the ability to search for him?

fields in schema: message, date, link.

search by: message full text.

result of search: list of links and dates of messages.

--

---

<div class="post-metadata">

### Author: ![Roman\_Yudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_yudin/32/2575_2.png) [@Roman\_Yudin](https://discuss.elastic.co/u/Roman_Yudin)
#### Post date: [December 17, 2012, 10:36pm UTC](https://discuss.elastic.co/t/store/10100/3 "2012-12-17T22:36:55Z")

</div>

I try it:  
curl -XPUT '[http://localhost:9200/posts/post/\_mapping](http://localhost:9200/posts/post/_mapping)' -d '{  
"post" : {  
"\_timestamp" : {  
"enabled" : true,  
"path" : "post\_date"  
},  
"properties" : {  
"message" : { "type" : "string", "analyzer" :  
"russian\_morphology", "store" : "no", "index" : "analyzed" }  
}  
}  
}'  
Full text of the field "message" stored, anyway.  
I have an array of long texts and not need to keep full text.

2012/12/18 Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl)

> 'store' property to 'no', and 'index' to 'analyzed'

--  
Best Regards,  
Roman Yudin

CTO, Wobot LLC  
cell: 7 967 285 7900  
cell2: 7 903 538 6138  
location: Moscow, Russia  
timezone: UTC+4  
E-mail: [r@wobot.ru](mailto:r@wobot.ru)  
skype: rcp2skype  
twitter: @\_rcp  
[www.wobot.ru](http://www.wobot.ru)

--

---

<div class="post-metadata">

### Author: ![Rafal\_Kuc\_3](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rafal_kuc_3/32/799_2.png) [@Rafal\_Kuc\_3](https://discuss.elastic.co/u/Rafal_Kuc_3)
#### Post date: [December 17, 2012, 10:40pm UTC](https://discuss.elastic.co/t/store/10100/4 "2012-12-17T22:40:22Z")

</div>

Hello!

I assume you have your \_source field turned on. It stores the whole json document you sent to ElasticSearch. Try turning that off too.

_--_

Regards,

Rafał Kuć

Sematext :: [http://sematext.com/](http://sematext.com/) _:: Solr - Lucene - Nutch - ElasticSearch_

I try it:

curl -XPUT '[http://localhost:9200/posts/post/\_mapping](http://localhost:9200/posts/post/_mapping)' -d '{

```
"post" : {

    "_timestamp" : {

        "enabled" : true,

        "path" : "post_date"

    },

    "properties" : {

      "message" : { "type" : "string", "analyzer" : "russian_morphology", "store" : "no", "index" : "analyzed" }

  }

}

```

}'

Full text of the field "message" stored, anyway.

I have an array of long texts and not need to keep full text.

2012/12/18 Rafał Kuć \<[r.kuc@solr.pl](mailto:r.kuc@solr.pl)\>

'store' property to 'no', and 'index' to 'analyzed'

--

Best Regards,

Roman Yudin

CTO, Wobot LLC

cell: 7 967 285 7900

cell2: 7 903 538 6138

location: Moscow, Russia

timezone: UTC+4

E-mail: [r@wobot.ru](mailto:r@wobot.ru)

skype: rcp2skype

twitter: @\_rcp

[www.wobot.ru](http://www.wobot.ru/)

--

---

<div class="post-metadata">

### Author: ![Roman\_Yudin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/roman_yudin/32/2575_2.png) [@Roman\_Yudin](https://discuss.elastic.co/u/Roman_Yudin)
#### Post date: [December 17, 2012, 10:46pm UTC](https://discuss.elastic.co/t/store/10100/5 "2012-12-17T22:46:58Z")

</div>

Thanks, thats work!

2012/12/18 Rafał Kuć [r.kuc@solr.pl](mailto:r.kuc@solr.pl)

> \_source

--  
Best Regards,  
Roman Yudin

CTO, Wobot LLC  
cell: 7 967 285 7900  
cell2: 7 903 538 6138  
location: Moscow, Russia  
timezone: UTC+4  
E-mail: [r@wobot.ru](mailto:r@wobot.ru)  
skype: rcp2skype  
twitter: @\_rcp  
[www.wobot.ru](http://www.wobot.ru)

--

---

<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, 2:59am UTC](https://discuss.elastic.co/t/store/10100/6 "2017-07-06T02:59:33Z")

</div>


