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 6051811
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T07:51:32+00:00 2026-05-23T07:51:32+00:00

My Drupal 6 site uses 3 custom node types that are hierarchically organized: page,

  • 0

My Drupal 6 site uses 3 custom node types that are hierarchically organized: page, book, library. I want to use Solr to index and search the content.
I want the search to return only Book nodes in the results.
But I want the search to use the contents of children (pages) and parents (libraries) when performing the search.
Can Solr be configured to index & search in this way?

Thanks!

  • 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-05-23T07:51:33+00:00Added an answer on May 23, 2026 at 7:51 am

    You are going to have a couple of issues with this:

    1. Solr isn’t hierarchical by nature, it’s denormalized so indexing a heirarchy is hard.
    2. You’re going to have to figure out how to boost various terms/fields based on where in the hierarchy they are (is the library more important than the book, so to speak).
    3. Drupal has a specific configuration related to nodes and modifying that, by default, wouldn’t be the easiest.
    4. The Solr implementation is tightly tied to the database, so modifying the configuration would probably take a lot of effort on your part.

    I would recommend you don’t try to implement this, but if you did you could look at the Apache Solr Attachments module. You would have to do something similar… basically:

    1. hook_modify_query to modify the actual indexing of the node
    2. custom theme your search results to display this hierarchy

    Or you could create a single giant field with a bunch of searchable text and use that as part of your searches.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I've got a Drupal site which uses a custom field for a certain type
We have a Drupal site that uses Organic Groups to represent companies. I'm looking
I have a Drupal site using jQuery 1.3, so that unfortunately I cannot use
I have an image gallery within a Drupal site that uses the 'Image Gallery'
Im working on a drupal site that uses jQtouch (for iphone), and im trying
I have a rather complicated deploy setup for our Drupal site that is a
On my Drupal site, I have made a Users page using the Views module,
I'm working at a company that uses Drupal 6 to host documentation for it's
While working on an existing Drupal site I've noticed a strange glitch that causes
I'm creating a custom module that has uses the form API and sends an

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.