Needs work
Project:
Apache Solr Views
Version:
6.x-1.x-dev
Component:
Code
Priority:
Minor
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
24 Sep 2009 at 15:21 UTC
Updated:
13 Nov 2018 at 16:56 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Remon commentedworks for me, thanks :)
Comment #2
david lesieur commentedThe filter also works for me. Now longing for an argument handler. :)
Comment #3
david lesieur commentedI haven't really studied the code, but re-rolled the patch with a few very minor coding style fixes.
Comment #4
Flying Drupalist commentedSubscribe
Comment #5
Maikel commentedsubscribe
Comment #6
psibrtyger commentedsubscribe
Comment #7
Aldus commentedsubscribe.
Comment #8
njbooher commentedComment #9
njbooher commentedSubscribe
Comment #10
njbooher commentedAttached is the patch from comment #3 updated to work with the release from 2010-May-19.
Also attached is the above patch with the addition of an argument handler. To get facet blocks working, the field must be added to part_of_facet_block() in apachesolr_views_query.inc. See #592594: CCK arguments not integrating properly with facet blocks
Comment #11
Remon commentedworks like charm.
Comment #12
Remon commentedanybody else could test this patch?
Comment #13
ptrl commentedCan't get this to work in lastest dev, Am I missing something? I have a node reference field that shows up in a apache solr block but nothing happens when i click on a node reference and I get no new fields to add under arguments.
Comment #14
kenorb commentedHandler depends on content_handler_filter_many_to_one, which is part of CCK (where Apache SOLR Views doesn't have this dependency), either we need to add dependency, or write in this way, that it will not throw an error.
Comment #15
attiks commentedI needed userreference as well, so I used the patch here as a starting point and added userreference support as well as facet support, the exposed filters only show the values that make sense.
I also fixed an error so it works now with the latest dev version
Comment #16
attiks commentedupdated patch, so selected options are always shown
Comment #17
mkennedy2d commentedDo you plan to add an argument handler?
Comment #18
attiks commented#17, not for the moment, because not much time and i don't need it right now
Comment #19
Flying Drupalist commented+1 for argument filter.
Comment #20
les limI believe this still has to be adjusted for #14.
Comment #21
p.brouwers commentedI used the patch by attiks and added support for CCK nodereference fields in the D7 version of apachesolr_views and fixed some api-changes in the D7 version of apachesolr too.
Maybe it should be in another issue with the correct version tag?
Anyhow, if anyone needs it you can find it here.
Comment #22
muschpusch commentedI tried to apply the patch of #10 to the current dev of Apache Solr Views but i fail... I had a look at the old version when the patch was made and moved some code around but the node reference fields don't appear in views! Could someone provide a new patch?
Comment #23
fourmi4x commentedSuscribing, it would be awesome to have a new patch to pass nodereferences as arguments!
Comment #24
divThis commentedRather than patch the existing module, I have created a new module, which is currently available via my sandbox at http://drupal.org/sandbox/divThis/1180710. This utilizes the patch in #10, with some additional tweaks, allowing for use of a nodereference field, filter and argument.
Comment #25
3oheme commentedI've just tested divThis sandbox module and it worked like a charm.
Just a note: you must enable it in admin/settings/apachesolr/enabled-filters -> Apache Solr search fieldset.
If you try to use admin/settings/apachesolr/enabled-filters -> Apache Solr Node Reference fieldset it will not work.
Thank you very much!
Comment #26
rjbrown99 commentedSandbox is gone. Does anyone have the code that was previously there, preferably as a patch?
Comment #27
rjbrown99 commentedNever mind, here is the patch from #16 with argument support for nodereference. I did not add it for userreference since I don't really need that for my own stuff at the moment.
Comment #28
kenorb commented