Closed (outdated)
Project:
Apache Solr Views
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
10 Sep 2010 at 10:26 UTC
Updated:
13 Nov 2018 at 15:42 UTC
Jump to comment: Most recent
Comments
Comment #1
toemaz commentedInstead of $view->set_item, the right function is to use $view->set_item_option
While this seems nicely injecting the value in the view, the problem is that apachesolr_views still overrides the injected value by looking at the exposed param using $_GET[$filter_name]. If that param is not available, the value is set on NULL.
So the only way to trick the module without patching it, is to use:
Comment #2
drewish commentedSeems like it's a bug to pull directly from $_GET rather than the item option...
Comment #3
kenorb commentedVersion 6.x is no longer supported due to Drupal 6 End of Life. For Drupal 8.x, use Search API Solr Searchinstead.