It would be great if the context module could add a condition for searches being executed. This patch works for all implementations of the core Search API, including modules like Search Lucene API and the 1.x branch of Apache Solr Search Integration. It doesn't take into account when searches have been executed in views, but at least it is a start.

Thanks for a great module,
Chris

CommentFileSizeAuthor
search-condition.patch999 bytescpliakas

Comments

yhahn’s picture

Assigned: Unassigned » yhahn
Category: feature » task

Looking at this for 3.x now, sorry for the delay.

cpliakas’s picture

Thanks for getting to it. I know there are a lot of other more important things going on with the module. As a side note, it appears that the 2.x branch of Apache Solr is moving away form the core Search API, and I am exploring doing the same for Search Lucene API. Although adding support for third party modules is probably out of Context's scope, it is worth mentioning as the popularity of alternative search solutions increases.

Thanks again,
Chris

steven jones’s picture

Version: 6.x-2.0-beta7 » 6.x-3.0-beta4
Status: Needs review » Needs work
cpliakas’s picture

Version: 6.x-3.0-beta4 » 7.x-3.x-dev
Assigned: yhahn » Unassigned
Category: task » feature

Bumping to the 7.x version. Facet API now provides API functions as a result of the issue #1373096: Implement a function that stores which adapters ran the FacetapiAdapter::addActiveFilters() method which could provide some context around which searches have been executed. The code is generic to Apache Solr, Search API, and the core Search module which is why Facet API would be a good candidate to integrate with. This probably isn't something that should go in the Context module itself, but rather as a separate contrib that integrates the two projects. Just wanted to bump this issue with new information in case someone wants to take this on.

cpliakas’s picture

Status: Needs work » Closed (duplicate)

Closing in favor of #1379308: Integrate with the Context module, since a lot more possibilities are exposed by a contrib module integrating Facet API and Context as opposed to the very simple use case of the original post.