Needs work
Project:
Apache Solr Search
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
20 Jun 2012 at 14:59 UTC
Updated:
24 May 2013 at 17:20 UTC
Jump to comment: Most recent file
Dates of the 1st on each month are showing in two rows
i.e. a date of 01-July-1978 is listed as July and May
Current search
Search found 2 items
Filter by publication date:
(remove) 1978
June 1978 (2)
May 1978 (1)
This appears to be due to the search string being from 00:00:00 - 00:00:00
I'm using Solr 3.6.
| Comment | File | Size | Author |
|---|---|---|---|
| #15 | apachesolr-multiple-dates-hack-1649158-15.patch | 2.54 KB | David_Rothstein |
| #10 | multiple-dates-1649158-10.patch | 776 bytes | cpliakas |
| #10 | before-patch-1649158-10.jpg | 35.62 KB | cpliakas |
| #10 | after-patch-1649158-10.jpg | 35.72 KB | cpliakas |
| #4 | SolrDateBug2.png | 15.05 KB | cainsworth |
Comments
Comment #1
nick_vhoh my, this bug keeps re-occuring. I'd be very happy if you could dive in and see where this is happening?
Comment #2
cainsworth commentedI'm an Oracle database developer and new to drupal/php so although i'd love to have a look whats going wrong I need some help on this.
Comment #3
nick_vhCould you write up a nice list of steps on how to reproduce?
Comment #4
cainsworth commentedadmin/config/search/apachesolr/settings/solr/facetsand Saveadmin/structure/blockmoveFacet API: Apache Solr environment: localhost server : solr date/admin/config/search/apachesolrComment #5
pwolanin commentedComment #6
cainsworth commentedCan anyone provide a solution or workaround for this? It's becoming a major problem now.
Comment #7
cpliakas commentedBug posted against Facet API that is probably related. #1667866: Content with created date of 1st of a month appears in previous months facet.
Still unclear where the underlying issue is, so cross-posting.
Comment #8
nick_vhAny update here?
Comment #9
cpliakas commentedThe bug with steps to reproduce + screenshots are illustrated at #1667866-12: Content with created date of 1st of a month appears in previous months facet. The screenshots show multiple times as opposed to months, but I would suspect the underlying bug is the same.
Comment #10
cpliakas commentedThe attached patch resolved my issue on Solr 3.5. See the before and after screenshots below. I would be curious to see if it solves the multiple month issue as well.
Before
After
Comment #11
nick_vhunfortunately solr 1.4 does not support that param :( We should add some if version switch. See the solr 4.0 thread to figure out how I added that switch
Comment #12
cpliakas commentedAh, great point. Let's take a peek at that technique an add it to this fix.
Comment #13
cpliakas commentedI see. So we are dependent on the issue #1550964: Support Solr 4.0 schema pending addition of the
getSolrVersion()API method?Comment #14
cpliakas commentedPostponing issue pending resolution of #1550964: Support Solr 4.0 schema.
Comment #15
David_Rothstein commentedI won't pretend this is anything more than an ugly hack, but the attached patch does seem to solve the problem nicely for me.
Comment #16
David_Rothstein commentedActually, I guess this issue can be un-postponed since #1550964: Support Solr 4.0 schema is fixed?
I'm on a server that has an older version of Solr, though, so the earlier patch didn't work in my case.