Re: copy_to not working

2015-04-13 Thread Michael Young
Thank you Nikolas! -- Michael On Mon, Apr 13, 2015 at 12:59 PM, Nikolas Everett wrote: > 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 bette

Re: copy_to not working

2015-04-13 Thread Nikolas Everett
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

Re: copy_to not working

2015-04-13 Thread Michael Young
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 wrote: > Nothing. > > Elasticsearch does not modify _source field which contains the document > you sent. > It doe

Re: copy_to not working

2015-04-13 Thread Michael Young
Nikolas, Thank you for the response. This is definitely helpful and answers my question. Nested fields looks to solve what I'm trying to do for this particular use case; using nest fields for name variations will work perfectly. For other use cases, such as creating a title to the record/docume

Re: copy_to not working

2015-04-13 Thread Nikolas Everett
I want to expand on this a bit - both copy_to and transform only modify the _indexed_ document, not the source document. The thinking is that you can modify the source document yourself in the source application but the source application _can't_ modify the indexed document without modifying the so

Re: copy_to not working

2015-04-13 Thread David Pilato
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 @dadoonet

copy_to not working

2015-04-13 Thread Michael Young
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, "ind