How to query Elastic Search from my web app?

I am not very clear on how to do this, I have the following scenario:
My data/docs are indexed using scala native Java API.

  • I would like to use the REST http API to access ES, What I would like to
    understand is how can I query ES server from my web application written in
    Java Script, are there any existing APIs that I can use with Java Script? I
    understand that I can't use curl for instance with javaScript.
  • What's the best approach to this in order to make the solution/code
    maintainable and scalable?

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/a8b5a3df-9fc8-4e9d-82f1-98b4a4d1c57a%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

This? http://www.elasticsearch.org/blog/client-for-node-js-and-the-browser/

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 janv. 2014 à 06:18, ZenMaster80 sabdalla80@gmail.com a écrit :

I am not very clear on how to do this, I have the following scenario:
My data/docs are indexed using scala native Java 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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/4F44CCFC-FD05-410F-9A1F-C65BCFB0FE3F%40pilato.fr.
For more options, visit https://groups.google.com/groups/opt_out.

Great, I also found this helpful, by simple making ajax calls.

On Thursday, January 16, 2014 1:00:44 AM UTC-5, David Pilato wrote:

This?
Elasticsearch Platform — Find real-time answers at scale | Elastic

--
David :wink:
Twitter : @dadoonet / @elasticsearchfr / @scrutmydocs

Le 16 janv. 2014 à 06:18, ZenMaster80 <sabda...@gmail.com <javascript:>>
a écrit :

I am not very clear on how to do this, I have the following scenario:
My data/docs are indexed using scala native Java API.

  • I would like to use the REST http API to access ES, What I would like to
    understand is how can I query ES server from my web application written in
    Java Script, are there any existing APIs that I can use with Java Script? I
    understand that I can't use curl for instance with javaScript.
  • What's the best approach to this in order to make the solution/code
    maintainable and scalable?

--
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 elasticsearc...@googlegroups.com <javascript:>.
To view this discussion on the web visit
https://groups.google.com/d/msgid/elasticsearch/a8b5a3df-9fc8-4e9d-82f1-98b4a4d1c57a%40googlegroups.com
.
For more options, visit https://groups.google.com/groups/opt_out.

--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/elasticsearch/c18d7ad5-9e11-4c92-abb7-b15c63360a95%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.