Re: CommonsHttpSolrServer vs EmbeddedSolrServer
use Rivulet Enterprise Search , http://sourceforge.net/projects/rivu/ http://sourceforge.net/projects/rivu/ , it's very easy to use -- View this message in context: http://lucene.472066.n3.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp784201p786785.html Sent from the Solr - User mailing list archive at Nabble.com.
CommonsHttpSolrServer vs EmbeddedSolrServer
Can someone please explain to me the use cases when one would use one over the other. All I got from the wiki was: (In reference to Embedded) If you need to use solr in an embedded application, this is the recommended approach. It allows you to work with the same interface whether or not you have access to HTTP. I had a use case (detailed here: http://lucene.472066.n3.nabble.com/Custom-DIH-variables-td777696.html#a777696) where I tried creating a new server via the current core but I kept getting a SEVERE: java.util.concurrent.RejectedExecutionException... SEVERE: Too many close [count:-3] on org.apache.solr.core.SolrCore Maybe my implementation was off??? Is there any detailed documentation on SolrJ usage.. more than the wiki? Any books? Thanks -- View this message in context: http://lucene.472066.n3.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp784201p784201.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: CommonsHttpSolrServer vs EmbeddedSolrServer
Thank You Eric,Ryan and Otis for making me understand the difference.Now i got a clear picture of which server implementation to use for what. --Sachin Otis Gospodnetic wrote: Sachin, EmbeddedSolrServer implies an embedded, local, in-process access to Solr. CommonsHttpSolrServer lets you access a remote Solr instance via HTTP. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: sachin78 tendulkarsachi...@gmail.com To: solr-user@lucene.apache.org Sent: Thursday, May 14, 2009 1:30:05 PM Subject: CommonsHttpSolrServer vs EmbeddedSolrServer What is the difference between EmbeddedSolrServer and CommonsHttpSolrServer. Which is the preferred server to use? In some blog i read that EmbeddedSolrServer is 50% faster than CommonsHttpSolrServer,then why do we need to use CommonsHttpSolrServer. Can anyone please guide me the right path/way.So that i pick the right implementation. Thanks in advance. --Sachin -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23545281.html Sent from the Solr - User mailing list archive at Nabble.com. -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23623969.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: CommonsHttpSolrServer vs EmbeddedSolrServer
Sachin, EmbeddedSolrServer implies an embedded, local, in-process access to Solr. CommonsHttpSolrServer lets you access a remote Solr instance via HTTP. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: sachin78 tendulkarsachi...@gmail.com To: solr-user@lucene.apache.org Sent: Thursday, May 14, 2009 1:30:05 PM Subject: CommonsHttpSolrServer vs EmbeddedSolrServer What is the difference between EmbeddedSolrServer and CommonsHttpSolrServer. Which is the preferred server to use? In some blog i read that EmbeddedSolrServer is 50% faster than CommonsHttpSolrServer,then why do we need to use CommonsHttpSolrServer. Can anyone please guide me the right path/way.So that i pick the right implementation. Thanks in advance. --Sachin -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23545281.html Sent from the Solr - User mailing list archive at Nabble.com.
CommonsHttpSolrServer vs EmbeddedSolrServer
What is the difference between EmbeddedSolrServer and CommonsHttpSolrServer. Which is the preferred server to use? In some blog i read that EmbeddedSolrServer is 50% faster than CommonsHttpSolrServer,then why do we need to use CommonsHttpSolrServer. Can anyone please guide me the right path/way.So that i pick the right implementation. Thanks in advance. --Sachin -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23545281.html Sent from the Solr - User mailing list archive at Nabble.com.
Re: CommonsHttpSolrServer vs EmbeddedSolrServer
CommonsHttpSolrServer is how you access Solr from a Java client via HTTP. You can connect to a Solr running anywhere EmbeddedSolrServer starts up Solr internally, and connects directly, all in a single JVM... Embedded may be faster, the jury is out, but you have to have your Solr server and your Solr client on the same box... Unless you really need it, I would start with CommonsHttpSolrServer, it's easier to configure and get going with and more flexible. Eric On May 14, 2009, at 1:30 PM, sachin78 wrote: What is the difference between EmbeddedSolrServer and CommonsHttpSolrServer. Which is the preferred server to use? In some blog i read that EmbeddedSolrServer is 50% faster than CommonsHttpSolrServer,then why do we need to use CommonsHttpSolrServer. Can anyone please guide me the right path/way.So that i pick the right implementation. Thanks in advance. --Sachin -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23545281.html Sent from the Solr - User mailing list archive at Nabble.com. - Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com Free/Busy: http://tinyurl.com/eric-cal
Re: CommonsHttpSolrServer vs EmbeddedSolrServer
right -- which one you pick will depend more on your runtime environment then anything else. If you need to hit a server (on a different machine) CommonsHttpSolrServer is your only option. If you are running an embedded application -- where your custom code lives in the same JVM as solr -- you can use EmbeddedSolrServer. The nice thing is that since they are the same interface, you can change later. The performance comments on the wiki can be a bit misleading -- yes, in some cases embedded could be faster, but that may depend on how you are sending things -- are you sending 1000s of single document requests really fast? If so, try sending a bunch of documents together in one request. Also consider using the StreamingHttpSolrServer (https://issues.apache.org/jira/browse/SOLR-906 ) -- it has a few quirks, but can be much faster. In any case, as long as you program against the SolrServer interface, then you could swap the implementation as needed. ryan On May 14, 2009, at 3:35 PM, Eric Pugh wrote: CommonsHttpSolrServer is how you access Solr from a Java client via HTTP. You can connect to a Solr running anywhere EmbeddedSolrServer starts up Solr internally, and connects directly, all in a single JVM... Embedded may be faster, the jury is out, but you have to have your Solr server and your Solr client on the same box... Unless you really need it, I would start with CommonsHttpSolrServer, it's easier to configure and get going with and more flexible. Eric On May 14, 2009, at 1:30 PM, sachin78 wrote: What is the difference between EmbeddedSolrServer and CommonsHttpSolrServer. Which is the preferred server to use? In some blog i read that EmbeddedSolrServer is 50% faster than CommonsHttpSolrServer,then why do we need to use CommonsHttpSolrServer. Can anyone please guide me the right path/way.So that i pick the right implementation. Thanks in advance. --Sachin -- View this message in context: http://www.nabble.com/CommonsHttpSolrServer-vs-EmbeddedSolrServer-tp23545281p23545281.html Sent from the Solr - User mailing list archive at Nabble.com. - Eric Pugh | Principal | OpenSource Connections, LLC | 434.466.1467 | http://www.opensourceconnections.com Free/Busy: http://tinyurl.com/eric-cal