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

1 Answered Questions

[SOLVED] Search API + Apache SOLR - No highlighted excerpts returned for stemmed terms

  • 2016-01-15 12:18:02
  • Alex Kirsten
  • 544 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
  • 888 View
  • 0 Score
  • 1 Answer
  • Tags:   search

2 Answered Questions

[SOLVED] Apache Solr Search, add taxonomy field in search results

  • 2013-07-30 10:43:38
  • Gregory Kapustin
  • 1540 View
  • 1 Score
  • 2 Answer
  • Tags:   7 entities search

1 Answered Questions

How do you get Solr Views to query Acquia Search?

  • 2014-02-06 04:38:46
  • Andrew
  • 267 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
  • 978 View
  • 0 Score
  • 2 Answer
  • Tags:   search

Sponsored Content