Nodes were not being indexed because the taxonomy field should should always be set to accept multiple, instead of checking the value in the UI.

Error from watchdog:
multiple values encountered for non multiValued field is_taxonomy_vid_8

Changing:

$field['multiple'] = $vocabulary->multiple;
to
$field['multiple'] = true;

Resolved my issue. I will submit a patch in the next couple minutes.

Comments

benschaaf’s picture

Patch.

benschaaf’s picture

Oops, patch attached.

benschaaf’s picture

Status: Active » Patch (to be ported)
benschaaf’s picture

Sorry, this is my first patch attempt....going to keep guessing how to submit it until I figure it out ;)

benschaaf’s picture

Status: Patch (to be ported) » Needs review
killua99’s picture

Status: Needs review » Needs work
+++ b/apachesolr.module
@@ -2038,7 +2038,7 @@ function apachesolr_entity_fields($entity_type = 'node') {
+        $field['multiple'] = true;

I guest this is not a correct way, Because the table "vocabulary" in your database exist the multiple field. That means you need to set it on the taxonomy settings.

Did you try that before?

nick_vh’s picture

Status: Needs work » Reviewed & tested by the community

killua99, snowfox is correct here. Multiple in the taxonomy UI in Drupal 6 just means that you are able to select multiple terms in a select box. Nothing else

Taxonomy fields are always multiple, so I approve this change

nick_vh’s picture

Status: Reviewed & tested by the community » Fixed

Committed to 6.x-3.x. Thanks!

nick_vh’s picture

Status: Fixed » Closed (fixed)