Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Empty date facets in Hue 2.5 Solr Search

Empty date facets in Hue 2.5 Solr Search

New Contributor

Hi,

 

    I'm following the Hue 2.5 Solr Search video example, but when I'm trying to add date facets to search results. I found the date facets is empty.

    The datetime of records in schema.xml is:

<field name="last_modified" type="date" indexed="true" stored="true"/>
    How to solve this? I think I must missing something.

    Thank you very much!

 

20131122174808.jpg

3 REPLIES 3

Re: Empty date facets in Hue 2.5 Solr Search

New Contributor

and the data in solr is:

{
"id": "13851144614432d6c08b4", "value_s": "<77>Nov 22 18:01:01 node109 run-parts(/etc/cron.hourly)[2475]: starting 0anacron", "last_modified": "2013-11-22T18:01:01Z", "_version_": 1452397781660467200
}

Re: Empty date facets in Hue 2.5 Solr Search

New Contributor

I think the type in your solr schema needs to be "tdate" instead of "date" if I remember correctly

I stumpled upon this once in the past.

 

Your problem is probably already solved, but maybe it can help someone else.

Re: Empty date facets in Hue 2.5 Solr Search

Indeed, it seems very similar to this old problem.

You can use the above workaround and this is fixed in Hue 3.0 or CDH5b1: https://github.com/cloudera/hue/commit/9029c2cc6dfd71a0e484678d3227941888e80090
Don't have an account?
Coming from Hortonworks? Activate your account here