# Time based search fails (cdr.start:\[now-1d/d TO \*\])

**URL:** <https://discuss.elastic.co/t/time-based-search-fails-cdr-start-now-1d-d-to/44563>\
**Category:** Kibana\
**Created:** [March 16, 2016, 2:19pm UTC](https://discuss.elastic.co/t/time-based-search-fails-cdr-start-now-1d-d-to/44563 "2016-03-16T14:19:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![EricK](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@EricK](https://discuss.elastic.co/u/EricK)\
**Post date:** [March 16, 2016, 2:19pm UTC](https://discuss.elastic.co/t/time-based-search-fails-cdr-start-now-1d-d-to/44563/1 "2016-03-16T14:19:04Z")

</div>

Hi all,

I upgraded to latest Kibana and Elasticsearch. My earlier time based visualization fails / does not return any result even though the field event.start exists.

Has the API changed?

This is the query.

event.start:[now-1d/d TO \*]

Regards,

Eric

---

<div class="post-metadata">

**Author:** ![EricK](https://avatars.discourse-cdn.com/v4/letter/e/bbce88/32.png) [@EricK](https://discuss.elastic.co/u/EricK)\
**Post date:** [March 16, 2016, 2:38pm UTC](https://discuss.elastic.co/t/time-based-search-fails-cdr-start-now-1d-d-to/44563/2 "2016-03-16T14:38:55Z")

</div>

It could be because of this.

> **Scripted Fields**

> UPDATE: As a security precaution, starting with version 4.0.0-RC1, Kibana scripted fields default to Lucene Expressions, not Groovy, as the scripting language. Since Lucene Expressions only support operations on numerical fields, the example below dealing with date math does not work in Kibana 4.0.0-RC1+ versions.

How do I enable groovy to be the default?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:58pm UTC](https://discuss.elastic.co/t/time-based-search-fails-cdr-start-now-1d-d-to/44563/3 "2017-07-06T13:58:58Z")

</div>


