Set the mapping for this field to be a string. http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string <http://www.elasticsearch.org/guide/en/elasticsearch/reference/current/mapping-core-types.html#string>
It won’t be converted as a date. -- David Pilato | Technical Advocate | Elasticsearch.com @dadoonet <https://twitter.com/dadoonet> | @elasticsearchfr <https://twitter.com/elasticsearchfr> | @scrutmydocs <https://twitter.com/scrutmydocs> > Le 15 févr. 2015 à 15:42, Shahid Qadri <sha...@trialx.com> a écrit : > > i know i just want to disable automatic date conversion as my date strings > are not in valid format(they can be empty as well) > > On Sunday, February 15, 2015 at 7:29:59 PM UTC+5:30, David Pilato wrote: > Sounds like "--" is not a valid date. > > -- > David ;-) > Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs > > Le 15 févr. 2015 à 14:44, Shahid Qadri <sha...@trialx.com <javascript:>> a > écrit : > >> guys getting this error >> >> raise HTTP_EXCEPTIONS.get(status_code, TransportError)(status_code, >> error_message, additional_info) >> RequestError: TransportError(400, u'MapperParsingException[failed to parse >> [SOURCES.DATE_COMP]]; nested: MapperParsingException[failed to parse date >> field [--], tried both date format [dateOptionalTime], and timestamp number >> with locale []]; nested: IllegalArgumentException[Invalid format: "--"]; ') >> >> -- >> 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 elasticsearc...@googlegroups.com <javascript:>. >> To view this discussion on the web visit >> https://groups.google.com/d/msgid/elasticsearch/b5c56a9a-edea-4006-a8f3-9b676b8f7b45%40googlegroups.com >> >> <https://groups.google.com/d/msgid/elasticsearch/b5c56a9a-edea-4006-a8f3-9b676b8f7b45%40googlegroups.com?utm_medium=email&utm_source=footer>. >> For more options, visit https://groups.google.com/d/optout >> <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 elasticsearch+unsubscr...@googlegroups.com > <mailto:elasticsearch+unsubscr...@googlegroups.com>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/elasticsearch/982a26f7-fa99-45ce-a9cf-07b8f9ea86a7%40googlegroups.com > > <https://groups.google.com/d/msgid/elasticsearch/982a26f7-fa99-45ce-a9cf-07b8f9ea86a7%40googlegroups.com?utm_medium=email&utm_source=footer>. > For more options, visit https://groups.google.com/d/optout > <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 elasticsearch+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/55B0B9AD-38B6-4625-972E-4B0438DFC899%40pilato.fr. For more options, visit https://groups.google.com/d/optout.