-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Elasticsearch connection problem #34
Comments
Hey @szmizorsz There's actually a bug in Elasticsearch 2.3 line that causes Elasticsearch to ignore the CORS settings. So unfortunately there's not much I can do to get Splainer to support Elasticsearch 2.3. Eventually I'd like to sidestep this CORS business by making Splainer an ES plugin or perhaps a chrome extension. However, that causes Splainer to lose some useful features like sharing http://splainer.io URLs around to colleagues, etc. |
I believe this issue is resolved in the recently released Elasticsearch 2.3.2. If you are able to upgrade, please let me know if that does it for you. |
Hey, |
Thanks! And don't hesitate to reach out for further help |
Hey Doug, I played a bit with Splainer and came up with a question. In our use cases we have many ES queries where score calculation is based on constant score queries wrapped by a function score query with many function score boosters. { Our data is coming to Elasticsearch from an RDBMS where tables contains enum-like data and not free text data. In our use cases TF/IDF scoring was a bit misleading that's why we replaced with constant score queries and function score boosters. But we can have many boosters (much more than I provided in the example above), so when we get the final score it would be helpful to clearly identify which booster contributed to the final score without digging into the ES explain. When I checked it with Splainer I got only this information (e.g.: for one item): So the question is do you plan to introduce some features in Splainer that handles the function score queries? BTW: we also play in some cases with multi-match queries where we rely on TF/IDF score calculation. In those cases Splainer did an awesome job to simply explain the score. Thanks and Regards, |
that does look like a bug, Szabolcs, I'll create an issue. Thanks! |
@szmizorsz can you go into Splainer and get the "full explain" JSON for this query? If you do that I'll go and create an issue. |
Sure: { Thanks |
Hi,
I wanted to experiment with Splainer with Elasticsearch, but I am struggling to make it connect to ES.
With http://splainer.io/ and running local splainer app I face the same problem:
"Error with your query. Double check that the URL is correct.
Network Error! (host not found)
or CORS needs to be configured for your Elasticsearch
Enable CORS in elasticsearch.yml:
http.cors.allow-origin: "/https?://(.*?.)?(quepid.com|splainer.io)/"http.cors.enabled: true"
My relevant elasticsearch.yml configuration:
http.cors.allow-origin: ""
http.cors.enabled: true
I needed the "" to let kibana to connect.
I also tried to set other CORS configuration, but they did not help:
http.cors.allow-methods: OPTIONS, HEAD, GET, POST, PUT, DELETE
http.cors.allow-headers: "X-Requested-With, Content-Type, Content-Length, X-User"
Elasticsearch version: 2.3.1
Thanks for your help in advance.
Szabolcs
The text was updated successfully, but these errors were encountered: