Date field is detected correctly. I can add it in facets, but it is working as text field (faced is grouped by exact values, not per year, then month, etc). Attached image is illustrating this behavior.

It's the same if I am using date_popup (witch is now supported) or date combo box (from date module).

This bug is in this version only, I've just updated from beta2.

I'll dug into this tomorrow, but any info on what changed is more then welcome.

Thanks in advance
Mihajlo
Kontrola

Comments

mihha’s picture

Version: 6.x-2.0-beta3 » 6.x-2.x-dev
Status: Active » Needs review
StatusFileSize
new2.75 KB

Ok. Found it. Now it works.

Mihajlo
Kontrola

3dloco’s picture

Thanks a lot Mihha! Your patch works for me too.

3dloco’s picture

Status: Needs review » Reviewed & tested by the community

;)

jpmckinney’s picture

Status: Reviewed & tested by the community » Needs work

You should test if $mappings[$field_type][$widget_type]['facet_block_callback'] isset().

jpmckinney’s picture

jpmckinney’s picture

Issue tags: +apachesolr_date

Add tag

MickC’s picture

I've used this patch and get a list of multiple '2010' entries, which then drill down into different dates.
I would have expected it to roll up into a single entry for 2010.

Note there's an older thread here http://drupal.org/node/558160 but I'm not sure whether this ha been committed to the current dev, and which patch to use.

Any comment? thanks...

PS - I only got this far using this patch when I restored the 2nd fix to the original 'field_type' - the patch change to 'type' just failed on a time out. After the restore I could at least access the search page and see the facet, albeit with multiple year entries as described above. MC

jpmckinney’s picture

Title: Date not detected correctly for facets » facet_block_callback not propagated
Status: Needs work » Needs review
StatusFileSize
new1.44 KB

Re-rolled with my recommendation. I think field_type is correct and should not be changed.

jpmckinney’s picture

Not an issue in 7.x which handles facet_block_callback and other attributes much more cleanly in its apachesolr_entity_fields.

jpmckinney’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

MickC’s picture