-
Type: Bug
-
Status: Closed
-
Priority: Critical
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: 21
-
Component/s: Content Views
Trying to reproduce default search, on creation date that uses a date histogram, I got in Nuxeo Platform when displaying the content view:
Failed to execute phase [query_fetch], all shards failed; shardFailures {[u6s9AmoaR0We_apwcjO0Cg][nuxeo][0]: ElasticsearchParseException[failed to parse date field [1999year], tried both date format [dateOptionalTime], and timestamp number]; nested: IllegalArgumentException[Invalid format: "1999year" is malformed at "year"]; }
Problem is that for Extended bounds min and max "year" is happened systematically. I got the error putting nothing or putting values (like 1999).
Build should propbably not append the unit. Which makes me doubt on the fact that it is relvant to display it to the user in studio.
A working contribution:
<aggregate id="dc_created_agg" type="date_histogram" parameter="dc:created"> <field schema="default_search" name="dc_created_agg" /> <properties> <property name="interval">year</property> <property name="format">yyyy</property> <property name="order">key desc</property> </properties> </aggregate>
studio non working contribution:
<aggregate id="dublincore_created_agg" type="date_histogram" parameter="dc:created"> <field schema="default_search_cv" name="dublincore_created_agg"/> <properties> <property name="order">key desc</property> <property name="format">yyyy</property> <property name="timeZone">+00:00</property> <property name="postZone">+00:00</property> <property name="preZone">+00:00</property> <property name="interval">year</property> <property name="extendedBoundsMin">year</property> <property name="extendedBoundsMax">year</property> </properties> </aggregate>