-2

I have an external API with Doctors data. Every doctor item will have:

  • Title
  • Location ( geolocation address )
  • Opening hours
  • Short description
  • Area of expertise
  • Price range

On my Drupal 8 website, I want to be able to utilize a search of Doctors data that will have filters ( location proximity and zip, some checkboxes, and dropdowns ).

I also want to have a google map view with these filters.

I'm looking for the best approach in the selection of search tools. My current options are:

  • Search API ( i used it before but never with external data )
  • Elastic Search ( still not sure about implementation )
  • Introducing Feeds to import data into Drupal and then use Search API
  • Something else?

I'm open to any suggestion in terms of implementation and tools selection.

closed as off-topic by leymannx, Clive May 18 at 9:33

This question appears to be off-topic. The users who voted to close gave this specific reason:

  • "Questions asking to recommend or find a book, tool, module, theme, distribution, tutorial, or other off-site resource are off-topic for Drupal Answers as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it." – leymannx, Clive
If this question can be reworded to fit the rules in the help center, please edit the question.

  • 1. Wont do unless you have direct access to db. 2. This is not what you think. 3. While possible, I would consider this bad practice. 4. Custom module utilizing the Form API is the way to go. – No Sssweat May 19 at 8:24
1

If you have access to the external database credentials, there is a module called views database connector that gives you access to an external database in views.

I think it might be possible to configure a view to search through an external database with that module.

UPDATE: Otherwise you might consider creating a rest export view, there are a ton of guides on how to do that, here is one.

Good luck.

  • Since OP mentioned external API sounds like he doesn't have, direct access, access to any DB credentials. – No Sssweat May 19 at 8:20

Not the answer you're looking for? Browse other questions tagged or ask your own question.