elasticsearch-angular-example | simple project designed to help people get | Frontend Framework library
kandi X-RAY | elasticsearch-angular-example Summary
kandi X-RAY | elasticsearch-angular-example Summary
This is a very simple project designed to help people get going with angular and elasticsearch.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of elasticsearch-angular-example
elasticsearch-angular-example Key Features
elasticsearch-angular-example Examples and Code Snippets
Community Discussions
Trending Discussions on elasticsearch-angular-example
QUESTION
I'm starting with ES and at first time I just would like to make a simple test to ping my ES local instance, which is running, through JQuery or Angular.
I've made my own test using JQuery or I also followed this example : https://github.com/spalger/elasticsearch-angular-example
But I always get the same error : No Living connections.
I also tried through Java but there it works, I can query my ES local instance.
Thank you in advance for your ideas !
I'm using ES 2.4.6 but have the same issue with 5.6.2
...ANSWER
Answered 2017-Nov-15 at 14:34I saw you didn't specify the schema on your host. Try adding http://
to it. It worked for me once I added that and used a server with CORS configured.
QUESTION
I'm a beginner just trying to get the hang of elasticsearch with angular and have installed elasticsearch with the browserbuild here: https://www.elastic.co/guide/en/elasticsearch/client/javascript-api/current/browser-builds.html
I was able to get elasticsearch loaded into angular as a module and was following along with this sample repo: https://github.com/spalger/elasticsearch-angular-example/blob/master/README.md
When I tried to run the cluster.state call, I received the following error: Request header field Authorization is not allowed by Access-Control-Allow-Headers in preflight response.
According to the sample repo, I need to configure the elasticsearch.yml file in order to allow CORS. I couldn't seem to find this file so I created my own but how do I now get my js files to "require" or "read" from it?
...ANSWER
Answered 2017-Jun-21 at 04:08This is the configuration file for elasticsearch. It does not belong to the client.
Read about elasticsearch installation in their site and setup your development elasticsearch server to work against.
Good luck.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install elasticsearch-angular-example
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page