Hi, David!

I have the same problem like this (http://drupal.org/node/219824) and this (http://drupal.org/node/219989).

I want to combine the power of FACETED_SEARCH with the power of VIEWS. It can be easily realised by using URL-based arguments (like here http://drupal.org/node/164471). But your module's readme.txt said:

Note also that, because it is embedded in Faceted Search's results page, the
view cannot use exposed filters or URL-based arguments.

Finnaly, I want to use urls like this (I can easily construct it by JS) http://192.168.230.129/drupal/estate/results/+field_room_number:1?pr_fro...
where «+field_room_number:1» is processed by FACETED_SEARCH module
and where «pr_from=1000&pr_to=1400» are standard GET arguments which are processed by VIEW filters (like it is descibed here http://drupal.org/node/164471).

The question is: Is it possible to «teach» embedded FACETED_SEARCH's VIEW to process URL-based arguments (It seems for this VIEW just have to process «Argument Handling Code»)?

Comments

David Lesieur’s picture

We can easily push arguments to an embedded view. However, we need to know what to push. At the moment, each facet processes and "eats" the URL elements it understands, and what's left at the end is passed on to the free text search. I'd be open to a generic and clean solution for extracting arguments from the URL and passing them to the view.

crow_gl’s picture

Sorry for useless request, David.
It was my mistake..

The Argument Handling Code should NOT go between and delimiters;
I removed delimiters and all works now!

Thanks for your module, David!

David Lesieur’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

sidharth_k’s picture

Any update on this guys?

It would be really useful to get the ability to have exposed filters + faceted search.

sidharth_k’s picture

function YourCustomModuleName_form_alter(&$form, $form_state, $form_id){
  if($form['#id'] == 'views-exposed-form-searchfview-default'){
    $form['#action'] = request_uri();
  }
}

put the above snippet in any module. Substitute views-exposed-form-searchfview-default with the id of your exposed filter and you will be able to run a run a views filter with faceted search. Checked with drupal 6.10 and faceted search with views integration.

David Lesieur’s picture

Status: Closed (fixed) » Closed (duplicate)

See #243301: Support Views Exposed Filters with Faceted Search. sidharth_k has posted his snippet there too (thanks!)