I'm getting the error "*Invalid cast: xs:untypedAtomic("") cast as
xs:dateTime*" everytime I run my search query.

It used to be fine until I added the new constraint below which creates
buckets for a dateTime element called "*earlyReleaseDate*". See bucket
definition below.

The error happens when a document having a blank earlyReleaseDate is
processed.

Is there a way around this ?

Regards,
Danny

  <constraint name="pap-date" xmlns="http://marklogic.com/appservices/search
">
    <range type="xs:dateTime" facet="true">
      <element ns="http://www.massmed.org/elements/";
name="earlyReleaseDate"/>
      <computed-bucket lt="-P1Y" anchor="start-of-year"
name="older">Older</computed-bucket>
      <computed-bucket lt="P1Y" ge="P0Y" anchor="start-of-year"
name="year">This Year</computed-bucket>
      <computed-bucket lt="P0D" ge="-P90D" anchor="start-of-day"
name="90days">Past 90 Days</computed-bucket>
      <computed-bucket lt="P0D" ge="-P30D" anchor="start-of-day"
name="30days">Past 30 Days</computed-bucket>
      <computed-bucket lt="P1M" ge="P0M" anchor="start-of-month"
name="month">This Month</computed-bucket>
      <computed-bucket lt="P1D" ge="P0D" anchor="start-of-day"
name="today">Today</computed-bucket>
      <computed-bucket ge="P0D" anchor="now"
name="future">Future</computed-bucket>
      <facet-option>descending</facet-option>
    </range>
  </constraint>
_______________________________________________
General mailing list
[email protected]
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to