# Routing Elasticsearch searches from the web

**URL:** <https://discuss.elastic.co/t/routing-elasticsearch-searches-from-the-web/17401>\
**Category:** Elasticsearch\
**Created:** [May 7, 2014, 9:28pm UTC](https://discuss.elastic.co/t/routing-elasticsearch-searches-from-the-web/17401 "2014-05-07T21:28:27Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marcus\_Larsson](https://avatars.discourse-cdn.com/v4/letter/m/919ad9/32.png) [@Marcus\_Larsson](https://discuss.elastic.co/u/Marcus_Larsson)\
**Post date:** [May 7, 2014, 9:28pm UTC](https://discuss.elastic.co/t/routing-elasticsearch-searches-from-the-web/17401/1 "2014-05-07T21:28:27Z")

</div>

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 [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/902684ba-01b9-4079-a8df-290da21b19e8%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/902684ba-01b9-4079-a8df-290da21b19e8%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [July 6, 2017, 1:30am UTC](https://discuss.elastic.co/t/routing-elasticsearch-searches-from-the-web/17401/2 "2017-07-06T01:30:56Z")

</div>


