we have multiple solr custom searches on our site; these are all driven from separate search paths. so when the search is run we do an _apachesolr_modify_query() and based on the url of that path, modify the search query (for example, remove node types from the search results).

the issue is that we use autocomplete on all of these and the results that are returned are always from the full site index because, even though autcomplete is nice enough to run the
_apachesolr_modify_query hook, there is no way to know which form element is calling the autocomplete function.

i would guess it would not be too tricky to add in the form id to the json parameters and pass this along with the autocomplete request so that we could match the specific query alters.

any ideas?

Comments

janusman’s picture

This is a great idea. I'll look into it. Patches welcome!

allie micka’s picture

Status: Active » Closed (duplicate)

It looks like #1577842: custom search page integration with custom search filters was a duplicate of this issue, but I marked 1577842 as a duplicate of #1444038: Autocomplete for custom search pages, which has a patch started. I'm also marking this issue as duplicate and compiling your followup there.

allie micka’s picture

Issue summary: View changes

typo