Closed (fixed)
Project:
Facet API
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
6 Jul 2011 at 10:05 UTC
Updated:
21 Jul 2011 at 11:51 UTC
Jump to comment: Most recent file
Comments
Comment #1
cpliakas commentedI see what you are getting at. I think this is why there is an @todo to add a getBaseQuery() method in the adapter, but your solution might eliminate the need for this and may be a more elegant. I would be interested in getting Peter's feedback, because he understands the breadcrumb code more than I do :-)
Thanks for contributing,
Chris
Comment #2
cpliakas commentedThomas,
Just for my benefit so I can write some tests, where do the search keys come from in Search API, or is the location configurable?
~Chris
Comment #3
drunken monkeyIn search pages, they are in the path, just like in "normal" core searches, but when creating search views they are handed in GET parameters just like all other values for exposed Views filters. The concrete parameter is thus configurable, as it is for exposed Views filters in general. But I don't think the actual GET parameter matters for the code, as long as it's not "q" or "page" (which would of course be insane anyways).
Comment #4
cpliakas commentedI gotcha. Thanks for the context. Short summary, Facet API should recognize search keys in any $_GET variable (minus the notable exceptions, of course).
Comment #5
pwolanin commentedThat looks like an elegant patch, since we know the keys will be some place in the 'q' or query string.
Comment #6
cpliakas commentedThanks for reviewing, Peter.
Comment #7
cpliakas commentedAdded supporting tests in commit 1bae5a1. Without the patch the tests fail, with the patch they succeed.
Comment #8
cpliakas commentedCommitted patch at 315f22c. We have a new committer!