Hi,

i have created a view that ask for the value of a term_reference field that is indexed, i can see the data when i print the value in hook_apachesolr_process_results, but i cannot see anything in that field in the view.

any ideas?


function mymodule_apachesolr_process_results(&$results, $query) {
  print("<pre>");
  foreach ($results as $id => $result) {
    print_r($result);
  }
  print("</pre>");
}

This is the result of the search:

Array
(
    [link] => http://localhost:8082/node/3
    [title] => titulo 1 decision
    [score] => 1
    [snippets] => Array
        (
        )

    [snippet] =>  ...
    [fields] => Array
        (
            [id] => 1l6fpf/node/3
            [entity_id] => 3
            [entity_type] => node
            [bundle] => decision
            [bundle_name] => Decision
            [path] => node/3
            [url] => http://default/node/3
            [label] => titulo 1 decision
            [tos_name] => admin
            [is_uid] => 1
            [ds_created] => 2012-01-25T22:56:01Z
            [ds_changed] => 2012-01-25T22:56:01Z
            [is_comment_count] => 0
            [is_num_respuestas] => 17
            [is_num_experiencias] => 16
            [is_num_consejos] => 5
            [sm_vid_Ambito] => Array
                (
                    [0] => ambito 2
                    [1] => ambito1
                )

            [im_field_decision_ambitos] => Array
                (
                    [0] => 2
                    [1] => 1
                )

            [score] => 1
            [content] =

Comments

david.gil’s picture

Title: How can i display a multiple value term in a query? » How can i display a multiple value term in a query? PATCHED
StatusFileSize
new894 bytes

Hi,

i have solved it, but not sure if it is the better way, i post a patch with my changes...

Best

joachim’s picture

Category: support » bug
Status: Active » Needs review
StatusFileSize
new712 bytes

Here's that patch again rerolled for Drupal coding standards.

ygerasimov’s picture

Status: Needs review » Fixed

Committed with minor changes. Thank you.

Status: Fixed » Closed (fixed)

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

Anonymous’s picture

Issue summary: View changes

typo correct