Drupal coder

A better alternative for improving search results when working with node references in Drupal

A few weeks ago I posted a tip on this blog for improving search results when working with node references in Drupal. While browsing the CCK interface a bit more I stumbled upon an easier (no programming!) solution to solve this problem. Seems I had looked over an option under "Display options" to configure how the field should be indexed.

Below is the configuration screen for the example mentioned in my previous blog post.

search-node-reference.png

The second and third part of my article (the parts under "What happens when the referenced node's content changes?" and "The finishing touch") still stand though. So if you want your index to be updated as soon as the referenced node is altered and hide the referenced nodes from the search results, check out my previous post.

April 17, 2010Drupal, search

Comments

This does not seem to work "out of the box" when using Apache Solr, at least not for me. Have you tested this against Solr?

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options