Re: How can I store 2 different data types in same field of 2 different document?

2015-01-08 Thread Radu Gheorghe
Hi Paresh, You're welcome. I'm this http://stuffmysisterswilllike.files.wordpress.com/2012/07/victory-kid.jpg glad I nailed it! Best regards, Radu -- Performance Monitoring * Log Analytics * Search Analytics Solr Elasticsearch Support * http://sematext.com/ On Fri, Jan 9, 2015 at 9:25 AM,

Re: How can I store 2 different data types in same field of 2 different document?

2015-01-08 Thread Paresh Behede
Thank you so much Rodu...solution worked for me... Regards, Paresh B. On Thursday, 8 January 2015 21:11:47 UTC+5:30, Radu Gheorghe wrote: Thanks, David! I had no idea it works until... about one hour ago :) -- Performance Monitoring * Log Analytics * Search Analytics Solr Elasticsearch

Re: How can I store 2 different data types in same field of 2 different document?

2015-01-08 Thread Radu Gheorghe
Hi Paresh, If you want to sort on the field, I think it has to be the same type. So if you make everything a double, it should work for all numeric fields. To do that, you can use dynamic templates

Re: How can I store 2 different data types in same field of 2 different document?

2015-01-08 Thread David Pilato
Very nice Radu. I love this trick. :) -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet https://twitter.com/dadoonet | @elasticsearchfr https://twitter.com/elasticsearchfr | @scrutmydocs https://twitter.com/scrutmydocs Le 8 janv. 2015 à 14:43, Radu Gheorghe