Store

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.

--

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/ :: 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.

--

I try it:
curl -XPUT '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

'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
skype: rcp2skype
twitter: @_rcp
www.wobot.ru

--

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/ :: Solr - Lucene - Nutch - ElasticSearch

I try it:

curl -XPUT '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>

'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

skype: rcp2skype

twitter: @_rcp

www.wobot.ru

--

Thanks, thats work!

2012/12/18 Rafał Kuć 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
skype: rcp2skype
twitter: @_rcp
www.wobot.ru

--