question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Hi,

Just few general questions about photon :

  1. Is it possible to request photon directly with osm_id, in order to retrieve a place ?
  2. Is it possible to filter the json result with only few properties (e.g name & country) ?
  3. Is it possible to configure the provided ES for directly requesting it from another server ? I explain : -> our web server is on 192.168.1.10 -> photon is on 192.168.1.11 The web server wants to request ES. But currently, ES (on :9200) is only listening on localhost.

Thanks !!!

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:16 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
MarcelPitchcommented, Mar 17, 2015

Hi,

I come back to you for my usecase !

I’ve run the photon-server with this command :

java -jar photon-0.2.2.jar -transport-addresses 192.168.1.11:9300

Now, when I send a request from web-server (192.168.1.10) as follows :

http://192.168.1.11:2322/api?q=berlin

the photon-server returns this error :

[qtp310897065-22] ERROR spark.webserver.MatcherFilter -
org.elasticsearch.client.transport.NoNodeAvailableException: None of the configured nodes are available: []
        at org.elasticsearch.client.transport.TransportClientNodesService.ensureNodesAreAvailable(TransportClientNodesService.java:278)
        at org.elasticsearch.client.transport.TransportClientNodesService.execute(TransportClientNodesService.java:197)
        at org.elasticsearch.client.transport.support.InternalTransportClient.execute(InternalTransportClient.java:106)
        at org.elasticsearch.client.support.AbstractClient.search(AbstractClient.java:334)
        at org.elasticsearch.client.transport.TransportClient.search(TransportClient.java:424)
        at org.elasticsearch.action.search.SearchRequestBuilder.doExecute(SearchRequestBuilder.java:1116)
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:91)
        at org.elasticsearch.action.ActionRequestBuilder.execute(ActionRequestBuilder.java:65)
        at de.komoot.photon.searcher.BaseElasticsearchSearcher.search(BaseElasticsearchSearcher.java:18)
        at de.komoot.photon.searcher.AbstractPhotonRequestHandler.handle(AbstractPhotonRequestHandler.java:22)
        at de.komoot.photon.SearchRequestHandler.handle(SearchRequestHandler.java:44)
        at de.komoot.photon.SearchRequestHandler.handle(SearchRequestHandler.java:22)
        at spark.webserver.MatcherFilter.doFilter(MatcherFilter.java:139)
        at spark.webserver.JettyHandler.doHandle(JettyHandler.java:54)
        at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:179)
        at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:136)
        at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:97)
        at org.eclipse.jetty.server.Server.handle(Server.java:451)
        at org.eclipse.jetty.server.HttpChannel.run(HttpChannel.java:252)
        at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:266)
        at org.eclipse.jetty.io.AbstractConnection$ReadCallback.run(AbstractConnection.java:240)
        at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:596)
        at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:527)
        at java.lang.Thread.run(Thread.java:745)

Moreover, on the photon-server (192.168.1.11), I cannot access the ES head plugin with this url :

http://localhost:9200/_plugin/head/

Is there any config I missed ?

Thanks !!!

0reactions
MarcelPitchcommented, May 11, 2015

Hi @christophlingg, @avently,

OK @christophlingg, no problem. Good luck for all your projects !!!

OK, @avently, thanks ! I’ll check that !

Have a nice day !

Read more comments on GitHub >

github_iconTop Results From Across the Web

200 Best Questions To Ask To Get To Know Someone
To really get to know someone new, move past the small talk and ask these 200 questions instead. Learn about peoples likes, dislikes, ......
Read more >
100 Getting to Know You Questions - SignUpGenius
100 Getting to Know You Questions · What is your proudest accomplishment? · What is your child's proudest accomplishment? · What is your...
Read more >
450 Fun Questions to Ask People in ANY Situation (That Work!)
Questions to Ask People to Get to Know Them · What is your proudest accomplishment? · What is your astrological sign? · What...
Read more >
400 Fun Questions to Ask People (Friends, Family, Strangers)
400 Wacky, Wild & Totally Fun Questions to Ask Anyone—Including Friends, Family & Even Strangers! Find a good, interesting, and random question ......
Read more >
Great Questions - StoryCorps
Great Questions for Anyone; Friends and Colleagues; Grandparents; Raising Children; Parents; Growing Up; School; Teachers; Love & Relationships.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found