How to implement a search engine on a site that is in a Node.js environment

0

I made a site in the Node.js environment, using Express, Jade template engine, The problem is that the search engine I have ready is in PHP, I do not know if I can run it in Node environment; if you could, how would you do?

If it is not possible, or if you know how I can do a search engine directly in the Node environment, I ask you to help.

    
asked by anonymous 08.05.2014 / 04:46

1 answer

2

Both Solr and ElasticSearch work based on REST APIs, you install them in your environment and send requests to the APIs to get results in JSON, XML, or any other format.

Both Solr and ElasticSearch have Node clients:

Solr client in NodeJS

ElasticSearch client on NodeJS

This prevents you from having to make the requests and handle the responses manually.

    
09.05.2014 / 23:23