Hello,
great Distributions.Thanks for it.
I would like to use Recruiter with the same search system as have website ( http://drupaljobs.epiqo.com, http://www.absolventen.at ), there is support Autocomplete witch Facets together,how could I apply these features?

Example:
If, I would search word "book" then automaticly show me some suggestions "book,books,book ernest..." , after choiced one and searching showed me results with particular facets "location:USA,Spain,UK,price:10-100$", when I select for example "location:USA" show me more detail result.
I looking for the feature, which after changed search word for example to "ebook" show the result with selected facets "location:USA" directly?
Pls. could you help me.
Thank you a lot

Comments

luo8’s picture

Hello,
is anybody who can provide some information about above mentioned features?
Thanks

mh86’s picture

Status: Active » Fixed

There is a module for that: Search API Autocomplete http://drupal.org/project/search_api_autocomplete :-)

luo8’s picture

mh86,
thank you for your answer,so I need to have Solr installed.
And how I could setup searching as in example below?
Do I need some any others modules except Facet Api/ Search API Autocomplete/ Search API core...or I need some specified setup?
Thank you

EXAMPLE:
If, I would search word "book" then automaticly show me some suggestions "book,books,book ernest..." , after choiced one and searching showed me results with particular facets "LOCATION: Usa,Spain,Germany", when I select for example "location:USA" show me more detail result.
I looking for the feature, which after changed search word for example to "ebook" show the result with selected facets "LOCATION:USA" directly?
So, chosen facets result still stay the same anyway the search word is changed.

Status: Fixed » Closed (fixed)

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

luo8’s picture

Hello,
is anybody who could support me relating about feature?
Thanks.

luo8’s picture

Hello,
I really interest for Recruiter search engine,I have to pay for information or for modules, could anybody help me?
Thank you

luo8’s picture

Dear all,
could anyone advise me, I would like to have "remember facets" feature ....

Thanks

kenorb’s picture

Status: Closed (fixed) » Active

search_api_autocomplete doesn't help here.

kenorb’s picture

Category: support » feature
Status: Closed (fixed) » Active

To remember facets after the search word is changed, you can use the following module:
http://drupal.org/project/facetapi_pretty_paths
Works for me.

Also see: #1909102: Search Box as Facet

Would be good to integrate this module with Recruiter.

luo8’s picture

Category: support » feature

Dear kenorb,
thanks for suggestion,but It's not working for me.
In case of FACET_API - url's are changed,but after selected some taxonomy term from facet's, search keyword is change to "taxonomy name",which make unexpected result.
In case of SEARCH API, facets weren't remembered as well and url didn't change anyway.

Which version of facetapi_pretty_paths are you using?Did you make any additional setting?

Thanks

kenorb’s picture

Category: support » feature
Status: Fixed » Active

I'm using latest facetapi_pretty_paths 7.x-1.0-beta2.
Search form is the exposed block of the solr view (which appears on the front-page as well as on the result pages).
Result page is the solr view (with Facetapi blocks on the left side).

When searching for the word using exposed block, I've got this URL: /my_view/?search=Brevitas
When activating one filter, my URL is changed to: /location/England?search=Brevitas
When changing the keyword in my exposed block and Search, my URL is: /location/England?search=OtherWord
Please make sure that you're not using AJAX.

dasjo’s picture

Status: Active » Fixed

Recruiter uses http://drupal.org/project/facetapi_pretty_paths out-of-the-box.
as stated in #2, http://drupal.org/project/search_api_autocomplete can be used to improve on top of that.

i'm marking this as fixed as i think further details would need to be worked out within those related modules.

luo8’s picture

Dear kenorb,
yes, you are right..through "SEARCH API" and "VIEWS -> Exposed search form" is working for me as well.
Thank you very much for your support.

kenorb’s picture

Category: feature » support

Category: feature » support
Status: Active » Closed (fixed)

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

kenorb’s picture

Category: feature » support
Status: Active » Closed (fixed)
kenorb’s picture

Issue summary: View changes

syntax changed

lmeurs’s picture

Issue summary: View changes

In reaction to #9, a quick fix is to add current facets as hidden form fields:


/**
 * Implements hook_form_FORM_ID_alter().
 */
function MYMODULE_form_views_exposed_form_alter(&$form, &$form_state) {
  /**
   * SITUATION: Search forms with facet filters and keywords search.
   * PROBLEM: When searching for a keyword after using a facet filter, the
   * facet filter is ignored by Views.
   * SOLUTION: Add facet filters as hidden form fields to Views exposed forms.
   */

  // Check if this form is a Search API form. This could be replaced with the
  // value of a custom Views setting like ie. "Include facets".
  if ($form_state['view']->base_field === 'search_api_id') {
    // Get quary parameters.
    $query_parameters = drupal_get_query_parameters();

    // If any facet query parameters are provided.
    if (!empty($query_parameters['f'])) {
      // Iterate through facet query parameters.
      foreach($query_parameters['f'] as $key => $value) {
        // Add hidden form field for facet parameter.
        $form['f[' . $key . ']'] = array(
          '#type' => 'hidden',
          '#value' => $value,
          '#weight' => -1,
        );
      }
    }
  }
}