Re: Call to Solr via TCP
Thank you, Guys all for the responces -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4107921.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Call to Solr via TCP
: I am hosting Solr in Jetty servlet container and just would like to know : whether exists some way to communicate with Solr through TCP protocol, not : HTTP? HTTP ites on top of TCP, so your question doens't really make much sense to me. Please elaborate on your specific goal/problem, because I smell a lot of confusion somewhere... https://people.apache.org/~hossman/#xyproblem XY Problem Your question appears to be an XY Problem ... that is: you are dealing with X, you are assuming Y will help you, and you are asking about Y without giving more details about the X so that we can understand the full issue. Perhaps the best solution doesn't involve Y at all? See Also: http://www.perlmonks.org/index.pl?node_id=542341 -Hoss http://www.lucidworks.com/
Re: Call to Solr via TCP
Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Call to Solr via TCP
I think it is not possible since Jetty is a HTTP server except jetty is extensible to support other protocol, that is not a derivation of HTTP (it supports SPDY, WebSocket). However, what we do, is putting another layer on top of Solr. Our client does not directly connect to our Solr, but through some RPC layer. On 12/10/2013 09:15 AM, Zwer wrote: Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html Sent from the Solr - User mailing list archive at Nabble.com. CONFIDENTIALITY NOTICE == This email message and any attachments are for the exclusive use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message along with any attachments, from your computer system. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.
Re: Call to Solr via TCP
Zwer, I think it may be a bit dangerous as jetty may start to do some connection management and expect the client to do so. However, if you look into http/1.0 you have a little chance that doing simple http calls is as simple as socket connections. What could be the reason not to use a decent http client library? There's so many out there. paul On 10 déc. 2013, at 21:41, Patanachai Tangchaisin patanachai.tangchai...@wizecommerce.com wrote: I think it is not possible since Jetty is a HTTP server except jetty is extensible to support other protocol, that is not a derivation of HTTP (it supports SPDY, WebSocket). However, what we do, is putting another layer on top of Solr. Our client does not directly connect to our Solr, but through some RPC layer. On 12/10/2013 09:15 AM, Zwer wrote: Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty?
RE: Call to Solr via TCP
Zwer, is there a reason you need to do this? Its probably very hard to get solr to speak TCP. But if you're having a performance or infrastructure problem, the group might be able to help you with a far simpler solution. Sent from my Windows Phone From: Zwer Sent: 12/10/2013 12:15 PM To: solr-user@lucene.apache.org Subject: Re: Call to Solr via TCP Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Call to Solr via TCP
Yeah open socket to port and send correct Get syntax and Solr will respond with results... Bill Bell Sent from mobile On Dec 10, 2013, at 2:50 PM, Doug Turnbull dturnb...@opensourceconnections.com wrote: Zwer, is there a reason you need to do this? Its probably very hard to get solr to speak TCP. But if you're having a performance or infrastructure problem, the group might be able to help you with a far simpler solution. Sent from my Windows Phone From: Zwer Sent: 12/10/2013 12:15 PM To: solr-user@lucene.apache.org Subject: Re: Call to Solr via TCP Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: Call to Solr via TCP
Which is a precise description of what HTTP does. --wunder On Dec 10, 2013, at 4:00 PM, Bill Bell billnb...@gmail.com wrote: Yeah open socket to port and send correct Get syntax and Solr will respond with results... Bill Bell Sent from mobile On Dec 10, 2013, at 2:50 PM, Doug Turnbull dturnb...@opensourceconnections.com wrote: Zwer, is there a reason you need to do this? Its probably very hard to get solr to speak TCP. But if you're having a performance or infrastructure problem, the group might be able to help you with a far simpler solution. Sent from my Windows Phone From: Zwer Sent: 12/10/2013 12:15 PM To: solr-user@lucene.apache.org Subject: Re: Call to Solr via TCP Maybe I asked incorrectly. Solr is Web Application, hosted by some servlet container and is reachable via HTTP. HTTP is an extension of TCP and I would like to know whether exists some lower way to communicate with application (i.e. Solr) hosted by Jetty? -- View this message in context: http://lucene.472066.n3.nabble.com/Call-to-Solr-via-TCP-tp4105932p4105935.html Sent from the Solr - User mailing list archive at Nabble.com. -- Walter Underwood wun...@wunderwood.org