sunskin
sunskin

Reputation: 1680

Drupal content in Solr

I am using Apache Solr Search module for my Drupal 7 website. I have Solr running on a different server, my Drupal website is successfully connected to it and it works great meaning when I search for some text that is part of the Drupal website content such as 'basic page' or 'article', it returns search results. All good!

However, I have some xml documents(external data) that I want to be part of this search in the Drupal website. I have indexed those xml documents directly in Solr and they are searchable through Solr Admin only. I want to make them searchable from the Drupal website as well which shares the same Solr instance. How can I achieve that?

Do I have to modify schema.xml in Solr that was replaced with the one packaged from Drupal -apache solr module? Please shed some light.

Upvotes: 2

Views: 134

Answers (1)

Matt V.
Matt V.

Reputation: 9809

I don't know of a way to do what you're describing with the stock Apache Solr module alone. The closest contrib module I know of is the Apache Solr Attachments module, but my understanding is that the attachments would need to be associated with content rather than indexed externally.

That said, there is an Apache Solr Examples project that includes a submodule called Apache Solr external index that is described as, "An example of how to search an external index with Solr." There may be enough there to help you create a custom module to do what you're needing.

Upvotes: 1

Related Questions