Yes _but_ its generally better to do those transforms on the source
application.  The idea is that you'll often want to return multiple things
from the source so loading the whole thing is usually better than loading a
bunch of stored fields.

If your looking for the minimal possible amount of work to port from solr
to elasticsearch then go ahead but if you are looking to do whats more
normal for Elasticsearch applications then transform in the source
application.

Nik

On Mon, Apr 13, 2015 at 12:39 PM, Michael Young <[email protected]>
wrote:

> So if I use "stored" : true with the field definition, then it would be
> possible to fetch that field for display purposes?
>
> --
> Michael
>
> On Mon, Apr 13, 2015 at 11:23 AM, David Pilato <[email protected]> wrote:
>
>> Nothing.
>>
>> Elasticsearch does not modify _source field which contains the document
>> you sent.
>> It does create in the inverted index a new field. You can use it to
>> query, compute or retrieve if you stored it.
>>
>> --
>> *David Pilato* - Developer | Evangelist
>> *elastic.co <http://elastic.co>*
>> @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr
>> <https://twitter.com/elasticsearchfr> | @scrutmydocs
>> <https://twitter.com/scrutmydocs>
>>
>>
>>
>>
>>
>> Le 13 avr. 2015 à 17:02, Michael Young <[email protected]> a
>> écrit :
>>
>> I'm having issues getting the "copy_to" functionality to work.  It seems
>> pretty straight forward, so I wasn't expecting any problems.
>>
>> Here is my index creation call:
>>
>> curl -XPUT http://esnode:9200/test_index -d '{
>>   "settings" : {
>>     "number_of_shards" : 1,
>>     "number_of_replicas" : 1,
>>     "index.mapping.ignore_malformed" : true
>>   },
>>   "mappings" : {
>>     "default" : {
>>       "properties": {
>>         "name" : {
>>           "type" : "string",
>>           "copy_to" : "name_phonetic"
>>         },
>>         "name_phonetic" : {
>>           "type" : "string"
>>         }
>>       }
>>     }
>>   }
>> }'
>>
>> curl -XPUT http://esnode:9200/test_index/default/1 -d '{
>>   "name" : "smith"
>> }'
>>
>> When I query against test_index/default, I can see that "smith" is in the
>> "name" field.  However the "name_phonetic" field is blank.  What am I
>> missing?
>>
>> Thank you!
>>
>> --
>> Michael
>>
>> --
>> You received this message because you are subscribed to the Google Groups
>> "elasticsearch" group.
>> To unsubscribe from this group and stop receiving emails from it, send an
>> email to [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/0570abbe-f894-4822-b89a-3168f5f70687%40googlegroups.com
>> <https://groups.google.com/d/msgid/elasticsearch/0570abbe-f894-4822-b89a-3168f5f70687%40googlegroups.com?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>>
>>  --
>> You received this message because you are subscribed to a topic in the
>> Google Groups "elasticsearch" group.
>> To unsubscribe from this topic, visit
>> https://groups.google.com/d/topic/elasticsearch/NsWQPF74i5Q/unsubscribe.
>> To unsubscribe from this group and all its topics, send an email to
>> [email protected].
>> To view this discussion on the web visit
>> https://groups.google.com/d/msgid/elasticsearch/19DF140F-CB24-4C61-BE7A-8A7A88D0045D%40pilato.fr
>> <https://groups.google.com/d/msgid/elasticsearch/19DF140F-CB24-4C61-BE7A-8A7A88D0045D%40pilato.fr?utm_medium=email&utm_source=footer>
>> .
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "elasticsearch" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/elasticsearch/CA%2B6%3DytW1eiZoCQK%2BzjWSeHbKiVHaVtO7Yrgu4fwGZMekkizaoQ%40mail.gmail.com
> <https://groups.google.com/d/msgid/elasticsearch/CA%2B6%3DytW1eiZoCQK%2BzjWSeHbKiVHaVtO7Yrgu4fwGZMekkizaoQ%40mail.gmail.com?utm_medium=email&utm_source=footer>
> .
>
> For more options, visit https://groups.google.com/d/optout.
>

-- 
You received this message because you are subscribed to the Google Groups 
"elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/elasticsearch/CAPmjWd3Sr3FkV%3DOMy-1koQBnnFnWmbcAusbK9ph0ttvHi8TV4A%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to