By Martin K


2014-12-02 15:34:47 8 Comments

I'm completely new to Solr and roughly understand the basic principles of setting up a search engine but not (yet) the specifics.

I'm beginning work on a site which will display search results from the content in the site (Articles), however, we also want to allow visitors to use the same search form to return - in the same page - results from both our own site, and from other external sites which could be indexed in Solr but are not Drupal sites.

Is this even possible or am I wasting my time? Many thanks for any insights.

1 comments

@Tim Marsh 2017-06-02 09:07:30

Solr can be thought of as a document oriented database , it has a schema based, and a schema-less mode.

When used from the drupal module it uses a schema.xml file to specify what it expects to find in the documents (and hence index).

so if you go down that option one way you could search across the external domain and the drupal site is index the external domain to that schema, extending it where necessary

if you've got a title field in both sets of data , then it will index title that way. if your external site has different fields you could add them to the schema you'll want to define a minimal shared set that documents from either site share, to make themeing, and UX easier.

The process I would probably go for is

  1. create a schema that covers both sources of data
  2. configure Drupal to use that schema and index the site
  3. index the external site (Solr 5 has a crawler now, or might just be easier to build a CSV file with curl)

that would get you to a place where you can search across the 2 sites from the Drupal search. It would be a case of getting the theme/markup right to represent offsite vs onsite results.

Related Questions

Sponsored Content

1 Answered Questions

Solr search not returning content type

  • 2020-02-13 07:52:58
  • Steve
  • 21 View
  • 0 Score
  • 1 Answer
  • Tags:   search

1 Answered Questions

[SOLVED] Search Solr View with exposed filter fullsearch return no results

  • 2019-11-03 11:11:13
  • aspy
  • 47 View
  • 0 Score
  • 1 Answer
  • Tags:   views 8 search

2 Answered Questions

Search API Solr Configured, Content Indexed, No Search Results

  • 2019-04-07 13:19:15
  • Scott Hollenbeck
  • 120 View
  • 1 Score
  • 2 Answer
  • Tags:   search

1 Answered Questions

[SOLVED] Apache solr search words, but the search pages yield no results

  • 2013-05-08 03:08:31
  • CR47
  • 599 View
  • 0 Score
  • 1 Answer
  • Tags:   search

1 Answered Questions

[SOLVED] Error reindexing attachments in Drupal 7 using Apache Solr Attachments module

  • 2011-10-28 16:56:49
  • John81
  • 1317 View
  • 0 Score
  • 1 Answer
  • Tags:   search

1 Answered Questions

[SOLVED] Adding a field to a content type for Apache Solr search and Facets

  • 2015-07-20 18:53:58
  • UnsettlingTrend
  • 931 View
  • 0 Score
  • 1 Answer
  • Tags:   search

1 Answered Questions

How do you get Solr Views to query Acquia Search?

  • 2014-02-06 04:38:46
  • Andrew
  • 275 View
  • 0 Score
  • 1 Answer
  • Tags:   views search

2 Answered Questions

[SOLVED] connect apache solr to a custom search function

  • 2012-06-27 08:19:44
  • Alex Welander
  • 981 View
  • 0 Score
  • 2 Answer
  • Tags:   search

Sponsored Content