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
Comment #1
david.gil commentedHi,
i have solved it, but not sure if it is the better way, i post a patch with my changes...
Best
Comment #2
joachim commentedHere's that patch again rerolled for Drupal coding standards.
Comment #3
ygerasimov commentedCommitted with minor changes. Thank you.
Comment #4.0
(not verified) commentedtypo correct