Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7988983
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T12:37:04+00:00 2026-06-04T12:37:04+00:00

I have a Drupal 7 website that is running apachesolr search and is using

  • 0

I have a Drupal 7 website that is running apachesolr search and is using faceting through the facetapi module.

When I use the facets to narrow my searches, everything works perfectly and I can see the filters being added to the search URL, so I can copy them as links (ready-made narrowed searches) elsewhere on the site.

Here is an example of how the apachesolr URL looks after I select several facets/filters:

search_url/search_keyword?f[0]=im_field_tag_term1%3A1&f[1]=im_field_tag_term2%3A100

Where the ‘search_keyword‘ portion is the text I’m searching for and the ‘%3A‘ is just the url encoded ‘:’ (colon).

Knowing this format, I can create any number of ready-made searches by creating the correct format for the URL. Perfect!

However, these filters are always ANDed, the same way they are when using the facet interface. Does anyone know if there is a syntax I can use, specifically in the search URL, to OR my filters/facets? Meaning, to make it such that the result is all entries that contains EITHER of the two filters?

Thanks in advance for any help or pointers in the right direction!

New edit:

I do know how to OR terms within the same vocabulary through the URL, I’m just wondering how to do it for terms in different vocabularies. 😉

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T12:37:05+00:00Added an answer on June 4, 2026 at 12:37 pm

    I finally found a way to do this in Drupal

    Enable the fq parameter setting.

    • Go to admin/config/search/apachesolr/[your_search_page]/core_search/edit or just navigate to the settings of the search page you’re trying to modify

    • Check the ‘Allow user input using the URL’ setting

    URL Syntax

    • Add the following at the end of the URL: ?fq=tid:(16 OR 38), where 16 and 38 are the term ids
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have Drupal 6 website which is using FCK Editor as HTML editor. It
I have this website iloveforwards.com created using drupal. I would like to have a
I have this drupal website that revolves around a document database. By design you
I have a website built in Drupal and I have both the fbconnect module
I have a Drupal website where users are clicking on a link that initiates
I have a Drupal website that has a page at the URL alias of
I have created a module that works on a vanilla installation of Drupal but
I have a Drupal 7 multi-language(3) website. I have installed the Internationalization (7.x-1.0-beta2) module.
I have a custom module in Drupal that outputs a serialized dump of data.
I have installed the Content Profile module on my Drupal 6 website. This module

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.