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.

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.
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