lucene-solr-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yago Riveiro <>
Subject Re: Facet by truncated date
Date Thu, 31 Mar 2016 09:14:20 GMT
If you want aggregate the dat by the truncated date, I think the only way to
do it is using other field with the truncated date.


You can use a update request processor to calculate the truncated data
( or add the field in
indexing time.



truncated_date_s:'2016-03-31' or truncated_date_i:20160331 (this should be
more memory efficient)



/Yago Riveiro



On Mar 31 2016, at 10:08 am, Emir Arnautovic
&lt;; wrote:  

> Hi Robert,  
You can use range faceting and set use to set how dates  
are "truncated".


> Regards,  


> On 31.03.2016 10:52, Robert Brown wrote:  
&gt; Hi,  
&gt; Is it possible to facet by a date (solr.TrieDateField) but truncated  
&gt; to the day, or even the hour?  
&gt; If not, are there any other options apart from storing that truncated  
&gt; data in another (string?) field?  
&gt; Thanks,  
&gt; Rob  


> \--  
Monitoring * Alerting * Anomaly Detection * Centralized Log Management  
Solr &amp; Elasticsearch Support * <>

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message