Closed (fixed)
Project:
Apache Solr Views
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
8 Feb 2012 at 09:58 UTC
Updated:
27 Jun 2012 at 10:11 UTC
Jump to comment: Most recent file
Comments
Comment #1
nyleve101 commentedHi,
does this work with the current development release?
Hope you're well,
Evelyn
Comment #2
ygerasimov commentedI think this is no more needed as we execute query via apachesolr_do_query() so you can alter query with hook_apachesolr_query_alter() hook.
Also some of the handlers have been ported now.
Marking this issue as fixed.
Comment #3
david.gil commentedHi Yuriy,
i reopen this, and send a patch to the latest dev realese, but this time using hook_views_query_alter, as views do.
In the implementation of apachesolr_views in apachesolr_views_query we extend views_plugin_query that has an empty alter method implementation, but there is an implementation in views_plugin_query_default.
As you said we can hook the apache solr query, but there we have not any information about the views query being executed and i have a couple of use cases where that is needed to modify the query send to solr.
I send a patch.
Best
David
Comment #4
ygerasimov commentedThank you for the patch. Now I understand the idea. Committed.
Please next time make sure your patch can be applied on module's repo. See http://drupal.org/node/707484