Closed (fixed)
Project:
Apache Solr Search
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
19 Nov 2008 at 01:55 UTC
Updated:
21 Apr 2009 at 10:40 UTC
Jump to comment: Most recent file
Comments
Comment #1
pwolanin commentedthis seems to work for me for single and multiple value text fields. Committed - please test and report back.
Comment #2
pwolanin commentedprobably parts of this need to be backported
Comment #3
miklThanks Peter (and Acquia, i presume), you just saved my day :D
Comment #4
aufumy commentedI am interested to know what is the plan regarding cck fields to index. Currently it seems that text fields of widget_types: optionwidgets_select and optionwidgets_buttons are the only cck fields to index, as per function apachesolr_cck_fields().
I am trying to figure out whether my hook implementation of apachesolr_cck_field_mappings is necessary or will become soon outdated.
Comment #5
pwolanin commentedWell, I think that will overwrite the default one. Maybe we need to do the hook invocation differently - as an alter hook.
Comment #6
robertdouglass commentedThis is broken due to the 'safe' change. The values of the cck fields come out as <p>foo</p> instead of just foo and the facets are thus broken.
Comment #7
pwolanin commented@Robert - could you clarify more please?
You mean
$value['safe']?Comment #8
dreed47 commentedany update on this? I've got an implementation of this that I'd like to use CCK fields as facets but can't due to this issue. Is there a workaround I can implement until this is fixed?
Comment #9
pwolanin commentedPlease elaborate on the bug you observe so that we can work o fixing it. Is this bug still present in the beta2 release?
Comment #10
dreed47 commentedOk, sorry but maybe I should be posting in a new "support" thread as I'm not totally sure if I'm trying to use the module correctly. I just started looking at the module today so I may not yet fully understand how it's suppose to work.
I've got a CCK-based content type and I was expecting this module (out of the box) to index the CCK-based nodes and that doesn't seem to be happening. (I'm getting other content to index, just not my CCK nodes) Should they be?, or do I need to implement the hook_apachesolr_cck_field_mappings() function to be able to define what CCK fields to index?
Sorry, I just assumed that my CCK nodes were not getting indexed due to some issue related to this bug report.
Comment #11
pwolanin commentedAll the CCK content should be getting indexed as part of the rendered node body. However, only those fields using optionwidgets will get separate fields in the index and facets out of the box.
Comment #12
pwolanin commentedComment #13
mikl#11:
Is there any kind of hook or interface that will allow us to alter that behavior? While facets do not make much sense for to have for arbitrary numbers, I really need it as a separate field for building range queries…Just found it under "exposed hooks" on http://drupal.org/project/apachesolr – thanks for making a good API ;)
Comment #14
pwolanin commentednot sure whether those comments on the project page are up to date - check the source code for the current implementation
Comment #15
pwolanin commentedComment #16
floretan commentedWe went on a tangent from the original issue, but the indexing issue hasn't been fixed in the Drupal 5.x branch.
Even if there is still a problem if a field value contains HTML (tags are not removed and get displayed in plain text in the facet block), this patch makes it work (which is already an improvement on the current 5.x version).
Comment #17
robertdouglass commentedCommitted #16 to DRUPAL-5 with a slight modification. Thanks!