Routing Elasticsearch searches from the web

(Marcus Larsson) #1

I'm trying to get started with Elasticsearch, but I'm a little confused
about how to actually search from a webpage.

Specifically, I have a Javascript-based web app that's served by node.js on
the backend. I also have some documents indexed in Elasticsearch, and I'd
like to search them from the web app.

I'm not sure how this actually works. Does the search request first go to
my node.js backend, which then executes the search using the Elasticsearch
Javascript client, and then passes ES's response back to the web client? Or
is Elasticsearch queried directly from the page via the RESTful API?

You received this message because you are subscribed to the Google Groups "elasticsearch" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit
For more options, visit

(system) #2