Closed (fixed)
Project:
Apache Solr Views
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
10 Aug 2010 at 11:48 UTC
Updated:
25 Aug 2010 at 06:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
kenorb commentedCurrently I've tried to inject it in PHP Code like:
but no luck and I'm not sure how this can be solved in easy way.
Related: #187922: Negative arguments
Any ideas?
Comment #2
kenorb commentedIn Views in: ./handlers/views_handler_argument_numeric.inc - options_form()
we have following code:
In Apache Solr Views handlers/apachesolr_views_handler_argument.inc is not there.
It's something that can be implemented?
Comment #3
kenorb commentedComment #4
Scott Reynolds commentedSo the steps to add this
1.) Add the exclude option to the apachesolr_views_argument_handler::option_definition()
2.) Add the form element for the exclude option in apachesolr_views_argument_handler::option_form()
3.) change apachesolr_views_argument_handler::query() 's call to add_filter by this
Comment #5
kenorb commentedLol, it looks like it's working.
Big thanks!!!
Comment #6
Scott Reynolds commentedhttp://drupal.org/cvs?commit=405316
You should use
u and p flags gives a unified patch, that is much easier to read, see attached.
http://drupal.org/patch/create