Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FacetAPI URL processing issues #11

Open
krlucas opened this issue Aug 14, 2015 · 0 comments
Open

FacetAPI URL processing issues #11

krlucas opened this issue Aug 14, 2015 · 0 comments

Comments

@krlucas
Copy link

krlucas commented Aug 14, 2015

Restful Search API is awesome and it works great with straightforward term facets. But I've had trouble with other type of facets, namely Date Facets: https://www.drupal.org/project/date_facets

Date Facets implements its own FacetAPI QueryType that checks FacetapiAdapter::getActiveItems() to determine how to map user configurable "terms" (like "future" or "two-weeks-ago") to date ranges.

Because FacetapiAdapter::processActiveItems() ultimately looks at the URL through FacetAPI's default URL Processor plug-in and this module uses a different query parameter and format, FacetapiAdapter::getActiveItems() is never correct.

Perhaps this module should implement its own FacetAPI URL Processor plug-in instead of parsing the URL itself and manipulating the Search API conditions directly? Alternatively, simply using the gross ?f[0]=... format instead of the much nicer ?filter[name][value]=... seems to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant