Thanks for the suggestion, it's working like a charm.
Ciao,
Vincenzo
> On 21 Sep 2017, at 19:51, Jason Gerlowski wrote:
>
> Hi Vincenzo,
>
> Have you tried setting the read/socket timeout on your client?
> CloudSolrServer uses a LBHttpSolrServer under the hood, which
Thanks Jason, I'll give it a try immediately.
Ciao,
Vincenzo
--
mobile: 3498513251
skype: free.dev
> On 21 Sep 2017, at 19:51, Jason Gerlowski wrote:
>
> Hi Vincenzo,
>
> Have you tried setting the read/socket timeout on your client?
> CloudSolrServer uses a LBHttpSo
Hi Vincenzo,
Have you tried setting the read/socket timeout on your client?
CloudSolrServer uses a LBHttpSolrServer under the hood, which you can
get with the getLBServer method
(https://lucene.apache.org/solr/4_1_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSolrServer.html#getLbServer
Hi,
I have a huge problem with few queries in SolrCloud 4.8.1 that hangs the
client.
Actually I'm unable to understand even if the cluster really receives the
requests.
How can I set a timeout when Solrj client wait too much ?
Best regards,
Vincenzo
--
Vincenzo D'Amore
email: v.dam...@gmail.c
-recreate-CloudSolrServer-instance-tp4346040p4346944.html
Sent from the Solr - User mailing list archive at Nabble.com.
-too-many-zookeeper-connections-when-recreate-CloudSolrServer-instance-tp4346040p4346528.html
> Sent from the Solr - User mailing list archive at Nabble.com.
On 7/17/2017 2:48 AM, wg85907 wrote:
> Thanks for your detail explanation. The reason I want to shutdown the
> CloudSolrServer instance and create a new one is that I have concern that if
> it can successfully reconnect to Zookeeper server if Zookeeper cluster has
> so
always be the last choice.
Regards,
Geng, Wei
--
View this message in context:
http://lucene.472066.n3.nabble.com/Create-too-many-zookeeper-connections-when-recreate-CloudSolrServer-instance-tp4346040p4346528.html
Sent from the Solr - User mailing list archive at Nabble.com.
On Jul 17, 2017, at 1:48 AM, wg85907 wrote:
>
> Hi Shawn,
>Thanks for your detail explanation. The reason I want to shutdown
> the CloudSolrServer instance and create a new one is that I have concern
> that if it can successfully reconnect to Zookeeper server if Zookeeper
Hi Shawn,
Thanks for your detail explanation. The reason I want to shutdown
the CloudSolrServer instance and create a new one is that I have concern
that if it can successfully reconnect to Zookeeper server if Zookeeper
cluster has some issue and reboot. I will do related test with version
On 7/14/2017 6:29 AM, wg85907 wrote:
> I use Solr(4.10.2) as indexing tool. I use a singleton
> CloudSolrServer instance to query Solr. When meet exception, for example
> current Solr server not response, i will create a new CloudSolrServer
> instance and shutdown the o
Hi Community,
I use Solr(4.10.2) as indexing tool. I use a singleton
CloudSolrServer instance to query Solr. When meet exception, for example
current Solr server not response, i will create a new CloudSolrServer
instance and shutdown the old one. We have many query threads that share the
ult.
Plus, CloudSolrClient will be aware of the
status of the collection and compensate whenever
nodes go up/down so you don't have to worry about
that kind of error handling in your client.
I'm assuming you're using 4.x, CloudSolrServer
has been renamed CloudSolrClient in 5x and beyond.
Hi,
While sending updates to solr cloud i randomly send updates to one of the
node (in my cloud) directly using httpSolrServer. if i use cloudSolrServer
(by passing zk ip's), instead of httpSolrServer can i expect any improvment
in performance.
my baisc question is how does updates propagate
CloudSolrServer (and I'm assuming you're in the 4x code line, that's
now CloudSolrClient) takes an ensemble, here are two examples:
"host1:2181,host2:2181,host3:2181/mysolrchroot"
"zoo1.example.com:2181,zoo2.example.com:2181,zoo3.example.com:2181"
Best,
Eri
Hi,
In our production we have a solr cloud setup with zookeeper cluster setup.
I want to shift to CloudSolrServer from httpsolrserver is there any way to
specify all the ip addresses of zookeeper machines while
instantiating CloudSolrServer, so that i will have an automatic fallback
mechanism.
PS
ureTask.java:166)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
at java.lang.Thread.run(Thread.java:724)
besides, we use the singleton pattern to create and get the CloudSolrS
On 7/2/2016 2:29 AM, Kent Mu wrote:
> this kind of method by create an instance with a LBHttpSolrServer does
> not need to release LBHttpSolrServer and HttpClient??
The cloud client will only shutdown the LB client and its HttpClient if
it was the one who created those resources. When they are c
hi all,
I create a CloudSolrServer Connection by singleton pattern like this
public synchronized static CloudSolrServer getSolrCloudReadServer() {
if (reviewSolrCloudServer == null) {
ModifiableSolrParams params = new ModifiableSolrParams();
params.set
hi all,
I create a CloudSolrServer Connection by singleton pattern like this
public synchronized static CloudSolrServer getSolrCloudReadServer() {
if (reviewSolrCloudServer == null) {
ModifiableSolrParams params = new ModifiableSolrParams();
params.set
Thanks *Shawn.*
i was using older version of solrj. upgrading it to newer version worked.
Thank you.
On Thu, Jun 9, 2016 at 11:41 AM, Shawn Heisey wrote:
> On 6/8/2016 11:44 PM, Naveen Pajjuri wrote:
> > Trying to migrate from HttpSolrServer to CloudSolrServer. getting the
>
On 6/8/2016 11:44 PM, Naveen Pajjuri wrote:
> Trying to migrate from HttpSolrServer to CloudSolrServer. getting the
> following exception while adding docs using CloudSolrServer.
>
>
> org.apache.solr.common.SolrException: Unknown document router
> '{na
Hi,
Trying to migrate from HttpSolrServer to CloudSolrServer. getting the
following exception while adding docs using CloudSolrServer.
org.apache.solr.common.SolrException: Unknown document router
'{name=compositeId}'
at org.apache.solr.common.cloud.DocRouter.getDocRouter(DocRout
Thanks Andrea and Erick. It helped my understanding.
Thanks & Regards
Vijay
-Original Message-
From: Erick Erickson [mailto:erickerick...@gmail.com]
Sent: 17 April 2015 17:27
To: solr-user@lucene.apache.org
Subject: Re: HttpSolrServer and CloudSolrServer
Additionally when inde
Additionally when indexing, CloudSolrServer collects up the documents
for each shard and routes them to the leader for that shard, moving
that processing away from whatever node you happen so contact using
HttpSolrServer.
Finally, HttpSolrServer is a single point of failure if the node you
point
If you're using SolrCloud then you should use CloudSolrServer as it is
able to abstract / hide the interaction with the cluster. HttpSolrServer
communicates directly with a Solr instance.
Best,
Andrea
On 04/17/2015 10:59 AM, Vijay Bhoomireddy wrote:
Hi All,
Good Morning!!
Hi All,
Good Morning!!
For SolrCloud deployment, for indexing data through SolrJ, which is the
preferred / correct SolrServer class to use? HttpSolrServer of
CloudSolrServer? In case both can be used, when to use which? Any help
please.
Thanks & Regards
Vijay
--
The content
On 4/8/2015 6:30 AM, Chaushu, Shani wrote:
> I tried to get the SolrJ in older version, but I'm using solr-spark package
> and it fails with compilation errors probably because it uses function from
> newer versions...
> I can't find any solution...
Looking at the github repo for spark-solr, I
com]
Sent: Wednesday, April 08, 2015 14:56
To: solr-user@lucene.apache.org
Subject: Re: CloudSolrServer - Unknown type 19
Hello Shani,
Are you using SolrJ? Did you try using the same version of SolrJ (e.g v.
4.4 of SolrJ, if you're using Solr 4.4)? That's what generally worked for me.
Kind r
Hello Shani,
Are you using SolrJ? Did you try using the same version of SolrJ (e.g v.
4.4 of SolrJ, if you're using Solr 4.4)? That's what generally worked for
me.
Kind regards,
Emre Sevinç
http://www.bigindustries.be/
On Wed, Apr 8, 2015 at 1:46 PM, Chaushu, Shani
wrote:
> i'm using solr 4.
i'm using solr 4.4.
the query request works fine but when i try to add doc into solr cloud
(cloudSolrServer.request(updateRequest))
i get an error:
Exception in thread "main"
org.apache.solr.client.solrj.impl.CloudSolrServer$RouteException: Unknown type
19
at
org.apache.solr.client.so
Yes. Just before your email I was able to figure out. My project was set to
user solrj 4.10.3 everything was working fine except cloud so I didn't
noticed.
After I switched to Solrj 5 it's working now
Thanks everyone for supporting
Are you using a SolrJ client from 4.x to connect to a Solr 5 cluster?
On Wed, Mar 18, 2015 at 1:32 PM, Adnan Yaqoob wrote:
> I'm getting following exception while trying to upload document on
> SolrCloud using CloudSolrServer.
>
> Exception in thread "main" org.apach
: Chris,
: Please find attached Dump
nothing jumps out at me as looking odd, but i'm not the expert on this
stuff either -- hopefully someone else can take a look.
can you provide us with some more detials on what exactly you've done?
you said ...
: > : What steps did you follow to create th
> On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote:
: > > I'm getting following exception while trying to upload document on
: > > SolrCloud using CloudSolrServer.
: > >
: > > Exception in thread "main" org.apache.solr.common.SolrException:
: > >
; actually create the collection.
>
> What steps did you follow to create the collection in SolrCloud? It's
> possible you have the wrong ZK root somehow I suppose.
>
> Best,
> Erick
>
> On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote:
> > I'm ge
ZK root somehow I suppose.
Best,
Erick
On Wed, Mar 18, 2015 at 12:32 PM, Adnan Yaqoob wrote:
> I'm getting following exception while trying to upload document on
> SolrCloud using CloudSolrServer.
>
> Exception in thread "main" org.apache.solr.common.SolrException:
&g
I'm getting following exception while trying to upload document on
SolrCloud using CloudSolrServer.
Exception in thread "main" org.apache.solr.common.SolrException:
*Could not find collection :* gettingstarted
at
org.apache.solr.common.cloud.ClusterState.getCollection(Cluste
I am using Solrcloud with zookeeper setup. but when I try to make query using
following code snippet I get exception
code:
CloudSolrServer server = new CloudSolrServer("localhost:2181");
server.setDefaultCollection("gettingstarted");
server.connect();
SolrQuery q
trol the number of connections pooled
> here in SolrJ Client? Also, what will be the default values for maximum
> Connections and all.
>
> - Thanks
>
> On Thu, Feb 19, 2015 at 6:09 PM, Shalin Shekhar Mangar <
> shalinman...@gmail.com> wrote:
>
> > No, you should reu
the same CloudSolrServer instance for all requests. It
> is a thread safe object. You could also create a static/common HttpClient
> instance and pass it to the constructor of CloudSolrServer but even if you
> don't, it will create one internally and use it for all requests so th
No, you should reuse the same CloudSolrServer instance for all requests. It
is a thread safe object. You could also create a static/common HttpClient
instance and pass it to the constructor of CloudSolrServer but even if you
don't, it will create one internally and use it for all requests so
Hi All,
I am using CloudSolrServer API of SolrJ library from my application to
query Solr. Here, I am creating a new connection to Solr for every search
that I am doing. Once I got the results I am closing the connection.
Is this the correct way? How does Solr create connections internally? Does
Thanks Anshum.
If you say that "connect using CloudSolrServer" is more correct than saying,
"connect to CloudSolrServer", I believe you.
--
View this message in context:
http://lucene.472066.n3.nabble.com/cloudsolrserver-tp4177724p4177728.html
Sent from the Solr - User mai
To get started, the ref guide should be helpful.
https://cwiki.apache.org/confluence/display/solr/Using+SolrJ
You just need to pass the Zk host string to the constructor and then use
the server.
Also, what do you mean by *connect to CloudSolrServer*? you mean connect
using, right?
On Tue, Jan
We are switching from a direct HTTP connection to use cloudsolrserver. I
have looked and failed for an example of code for connecting to
cloudsolrserver. Are there any tutorials or code examples?
--
View this message in context:
http://lucene.472066.n3.nabble.com/cloudsolrserver-tp4177724
bject: Re: poor performance when connecting to CloudSolrServer(zkHosts)
> using solrJ
> From: mohd.huss...@gmail.com
> To: solr-user@lucene.apache.org
>
> My two cents, do check network connectivity. In past I remember changing
> the zookeeper server name to actual IP improved the s
On 12/29/2014 6:52 PM, zhangjia...@dcits.com wrote:
> > I setups a SolrCloud, and code a simple solrJ program to query solr
> > data as below, but it takes about 40 seconds to new CloudSolrServer
> > instance,less than 100 miliseconds is acceptable. what is going on when
>
On 12/29/2014 6:52 PM, zhangjia...@dcits.com wrote:
> I setups a SolrCloud, and code a simple solrJ program to query solr
> data as below, but it takes about 40 seconds to new CloudSolrServer
> instance,less than 100 miliseconds is acceptable. what is going on when new
> CloudSol
hi,
I setups a SolrCloud, and code a simple solrJ program to query solr
data as below, but it takes about 40 seconds to new CloudSolrServer
instance,less than 100 miliseconds is acceptable. what is going on when new
CloudSolrServer? and how to fix this issue?
String zkHost
This was a user error. My code was re-instantiating CloudSolrServer for each
request and never calling CloudSolrServer::shutdown().
Thanks,
Greg
- Original Message -
From: "Greg Solovyev"
To: solr-user@lucene.apache.org
Sent: Wednesday, December 10, 2014 11:08:10 AM
S
I am seeing this problem with Java 1.8.0_25-b17 on Ubuntu 14.04.1 LTS ZK 3.4.6,
Solr 4.10.2
Thanks,
Greg
- Original Message -
From: "JoeSmith"
To: "solr-user"
Sent: Monday, December 8, 2014 6:19:08 PM
Subject: Re: CloudSolrServer, concurrency and too many connec
I am seeing the same problem with 4.10.2 and 4.9.0. CloudSolrServer keeps
opening connections to ZK and never closes them. Eventually (very soon) ZK runs
out of connections and stops accepting new ones.
Thanks,
Greg
- Original Message -
From: "JoeSmith"
To: "solr-user
Thanks, Shawn. I updated to 7u72 and was not able to reproduce the
problem. That was good. But just to be sure about this, I backed back down
to 7u55 and again was not able to reproduce. So at least for now, this has
gone away even if the reason is inconclusive.
On Mon, Dec 8, 2014 at 7:37 AM,
We will need to update to 7u52, we are using 7u55. On the client side,
this happens with zookeeper 3.4.6 and 4.10.2 solrj. And we will need to
update both on the server side. What kind of config/setup information
would you need to see if we do still have an issue after these updates?
On Mon, D
On 12/7/2014 9:11 PM, JoeSmith wrote:
> i've upgraded to 4.10.2 on the client-side. Still seeing this connection
> problem when connecting to the Zookeeper port. If I connect directly to
> SolrServer, the connections do not increase. But when connecting to
> Zookeeper, the connections increase u
eisey wrote:
> On 12/6/2014 12:09 PM, JoeSmith wrote:
> > We are currently using CloudSolrServer, but it looks like this class is
> not
> > thread-safe (setDefaultCollection). Should this instance be initialized
> > once (at startup) and then re-used (in all threa
On 12/6/2014 12:09 PM, JoeSmith wrote:
> We are currently using CloudSolrServer, but it looks like this class is not
> thread-safe (setDefaultCollection). Should this instance be initialized
> once (at startup) and then re-used (in all threads) until shutdown when the
> process ter
We are using Solrj 10.10.0 to connect to a Zookeeper Solr host. What is
the correct pattern for making concurrent requests to the Zookeeper host?
We are currently using CloudSolrServer, but it looks like this class is not
thread-safe (setDefaultCollection). Should this instance be initialized
Hi,
Our indexing job and expiration job run every ~60 minutes (for about 10
minutes) in the test environment, within same JVM. Every job creates a new
CloudSolrServer (decision was taken keeping other parts of system design in
mind) and invokes shutdown() after it's complete.
We have been s
Hi,
Our indexing job and expiration job run every ~60 minutes (for about 10
minutes) in the test environment, within same JVM. Every job creates a new
CloudSolrServer (decision was taken keeping other parts of system design in
mind) and invokes shutdown() after it's complete.
We have been s
CloudSolrServer doesn't hit ZooKeeper for every request. I am guessing that
you are creating a new CloudSolrServer object per request. Don't do that.
Create just one CloudSolrServer and re-use it for all requests. It is a
thread-safe object.
On Mon, Oct 6, 2014 at 8:58 PM, Jonnakuti, V
you're done with the server object and
don't plan to use it again. That method shuts the object down so it
can't be used any more.
I admit that I don't have a lot of experience with CloudSolrServer, and
I haven't looked at the code in enough detail to know exactly how it
wo
Yeah I saw that does if I call shutdown after a request and need to make
another request I get
org.apache.solr.client.solrj.SolrServerException:
java.lang.IllegalStateException: Connection pool shut down
--
View this message in context:
http://lucene.472066.n3.nabble.com/Does-CloudSolrServer
There is a shutdown() method on CloudSolrServer that releases the resources
for CloudSolrServer.
Joel Bernstein
Search Engineer at Heliosearch
On Mon, Oct 6, 2014 at 11:39 AM, Jonnakuti, Vijayalatha <
vijayalatha.jonnak...@disney.com> wrote:
> We are using solr 4.8.0
>
> From: ,
We have too many zookeeper connections and had to increase max client
connection on zookeeper(3.4.6)
& solr 4.8.0
The underlaying problem looks like,
CloudSolrServer makes a connect call to zookeeper for every request but
never disconnects.
Am I supposed to call getZkStateReader().close()
We are using solr 4.8.0
From: , Vijay Jonnakuti
mailto:vijayalatha.jonnak...@disney.com>>
Date: Monday, October 6, 2014 at 8:34 AM
To: "solr-user@lucene.apache.org<mailto:solr-user@lucene.apache.org>"
mailto:solr-user@lucene.apache.org>>
Subject: Does CloudSolrSe
Hi
We have too many zookeeper connections and had to increase max client
connection on zookeeper(3.4.6)
The underlaying problem looks like,
CloudSolrServer makes a connect call to zookeeper for every request but never
disconnects.
Am I supposed to call getZkStateReader().close() for every
On 7/11/2014 10:09 AM, jimtronic wrote:
> We're trying to evaluate whether to use the CloudSolrServer in SolrJ or to
> use the HttpSolrServer that is pointed at a software or hardware load
> balancer such as haproxy or f5. This would be in production.
>
> Can anyone provide a
Hi there,
We're trying to evaluate whether to use the CloudSolrServer in SolrJ or to
use the HttpSolrServer that is pointed at a software or hardware load
balancer such as haproxy or f5. This would be in production.
Can anyone provide any experiential pros or cons on these? In additi
it's
healthy again.
Best,
Erick
On Mon, Jun 2, 2014 at 2:17 PM, Jim.Musil wrote:
> I’m curious how CloudSolrServer works in practice.
>
> I understand that it gets the active solr nodes from zookeeper, but does
> it do this for every request?
>
> If it does hit zk for ever
, because
the ZK server keeps all its data in memory and doesn’t have to go through the
consensus rigamarole required for a write.
On Jun 2, 2014, at 5:17 PM, Jim.Musil wrote:
> I’m curious how CloudSolrServer works in practice.
>
> I understand that it gets the active solr n
I’m curious how CloudSolrServer works in practice.
I understand that it gets the active solr nodes from zookeeper, but does it do
this for every request?
If it does hit zk for every request, that seems to put a lot of pressure on the
zk ensemble.
If it does NOT hit zk for every request, then
and one replica, and 3
>> ZKs. The Solr indexes are behind a load balancer. There is one
>> CloudSolrServer client updating the indexes. The index schema includes 3
>> ExternalFileFields. When the CloudSolrServer client issues a hard commit,
>> I
>> observe that the commi
gt;
> I have a SolrCloud index, 1 shard, with a leader and one replica, and 3
> ZKs. The Solr indexes are behind a load balancer. There is one
> CloudSolrServer client updating the indexes. The index schema includes 3
> ExternalFileFields. When the CloudSolrServer client issues a hard co
Inline responses below.
--
Mark Miller
about.me/markrmiller
On April 15, 2014 at 2:12:31 PM, Peter Keegan (peterlkee...@gmail.com) wrote:
I have a SolrCloud index, 1 shard, with a leader and one replica, and 3
ZKs. The Solr indexes are behind a load balancer. There is one
CloudSolrServer
I have a SolrCloud index, 1 shard, with a leader and one replica, and 3
ZKs. The Solr indexes are behind a load balancer. There is one
CloudSolrServer client updating the indexes. The index schema includes 3
ExternalFileFields. When the CloudSolrServer client issues a hard commit, I
observe that
That did fix my issue, thanks so much.
--
View this message in context:
http://lucene.472066.n3.nabble.com/java-lang-IllegalArgumentException-when-using-SolrJ-CloudSolrServer-tp4116585p4117279.html
Sent from the Solr - User mailing list archive at Nabble.com.
On 2/10/2014 5:05 PM, jfeist wrote:
I'm using Solr 4.5.1 and trying to use the SolrCloud setup. I have Zookeeper
and Solr running on three machines. I have some Java code that does the
following.
SolrServer ss = new
CloudSolrServer("http://localhost:8983/solr/collection1";);
s
I'm using Solr 4.5.1 and trying to use the SolrCloud setup. I have Zookeeper
and Solr running on three machines. I have some Java code that does the
following.
SolrServer ss = new
CloudSolrServer("http://localhost:8983/solr/collection1";);
ss.deleteByQuery("*:*");
Th
Thanks. You are right. It's the key.
--
View this message in context:
http://lucene.472066.n3.nabble.com/CloudSolrServer-has-thread-safe-issue-tp4112423p4112618.html
Sent from the Solr - User mailing list archive at Nabble.com.
AM, longsan wrote:
> Hi ,
>
>i'm using SolrJ to do some indexing work with CloudSolrServer class. It's
> strange that when i start several threads (each thread add 1 documents)
> to add documents, the result is just only 1 can be indexed finally. But
> if
Hi ,
i'm using SolrJ to do some indexing work with CloudSolrServer class. It's
strange that when i start several threads (each thread add 1 documents)
to add documents, the result is just only 1 can be indexed finally. But
if i change the thread num as 1, everything is o
ow we can get JSON response using CloudSolrServer
I am using Solr4.4.0 version with SolrCloud (i.e. a ZooKeeper aware setup)
I want to get search response in JSON using CloudSolrServer (of SolrJ API).
Any pointer will be helpful.
--
View this message in context:
http://lucene.472066.n3.nabble.co
I am using Solr4.4.0 version with SolrCloud (i.e. a ZooKeeper aware setup)
I want to get search response in JSON using CloudSolrServer (of SolrJ API).
Any pointer will be helpful.
--
View this message in context:
http://lucene.472066.n3.nabble.com/How-we-can-get-JSON-response-using
and 3
> different
> >> documents. And then creates an alias pointing to both of them.
> >>
> >> Line 153:
> >>// search with new cloud client
> >>CloudSolrServer cloudSolrServer = new
> >> CloudSolrServer(zkServer.getZkAddress()
st-class AliasIntegrationTest creates to cores with 2 and 3 different
>> documents. And then creates an alias pointing to both of them.
>>
>> Line 153:
>>// search with new cloud client
>>CloudSolrServer cloudSolrServer = new
>> CloudSolrServer(zkServer.g
// search with new cloud client
> CloudSolrServer cloudSolrServer = new
> CloudSolrServer(zkServer.getZkAddress(), random().nextBoolean());
> cloudSolrServer.setParallelUpdates(random().nextBoolean());
> query = new SolrQuery("*:*");
> query.set("
is mapped to.
You can confirm this easy in AliasIntegrationTest.
The test-class AliasIntegrationTest creates to cores with 2 and 3 different
documents. And then creates an alias pointing to both of them.
Line 153:
// search with new cloud client
CloudSolrServer cloudSolrServer = new
ne.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092238.html
> Sent from the Solr - User mailing list archive at Nabble.com.
ge in context:
http://lucene.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092238.html
Sent from the Solr - User mailing list archive at Nabble.com.
Anyone suggestion ?
--
View this message in context:
http://lucene.472066.n3.nabble.com/Not-able-to-index-documents-using-CloudSolrServer-tp4092074p4092185.html
Sent from the Solr - User mailing list archive at Nabble.com.
Hi,
I've recently started exploring SolrCloud and is trying to index
documents using CloudSolrServer client. The issue I'm seeing is if I don't
fire an explicit commit on CloudSolrServer object, the documents are not
getting indexed. Here's my code snippet :
CloudSol
Thanks for your reply.
I am using Solrcloud with zookeeper setup.
And using CloudSolrServer for both indexing and searching.
As per my understanding CloudSolrserver by default using LBHttpSolrServer.
And CloudSolrServer connect to Zookeeper and passing all the running server
node to
Shalin is right. If you read the documentation for CloudSolrServer you will
see that:
*SolrJ client class to communicate with SolrCloud. Instances of this class
communicate with Zookeeper to discover Solr endpoints for SolrCloud
collections, and then use the LBHttpSolrServer to issue requests
CloudSolrServer can only be used if you are actually using SolrCloud
(i.e. a ZooKeeper aware setup). If you only have a multi-core setup,
then you can use LBHttpSolrServer.
See http://wiki.apache.org/solr/LBHttpSolrServer
On Tue, Aug 27, 2013 at 2:11 PM, Dharmendra Jaiswal
wrote:
> Hello,
&g
wrong.
My query is that is it possible to connect with Solr using CloudSolrServer
instead of HTTPSolrServer for searching. so that in case one node will be
down cloud solr server will pick data from other instance of Solr.
Any pointer and link will be helpful. it will be better if some one shared
CloudSolrServer uses LBHttpSolrServer by default. CloudSolrServer connects
to Zookeeper and passes the live nodes
to LBHttpSolrServer. LBHttpSolrServer connects each node as round robin. By
the way do you mean "leader" instead of "master"?
2013/7/12 sathish_ix
Hi ,
Iam using cloudsolrserver to connect to solrcloud, im indexing the documents
using solrj API using cloudsolrserver object. Index is triggered on master
node of a collection, whereas if i need to find the status of the loading ,
it return the message from replica where status is null. How to
;>
>> > Why there is no getter method for defaultCollection at CloudSolrServer?
>>
>> Want to create a JIRA issue to add it?
>>
>> - Mark
>>
>
>
1 - 100 of 188 matches
Mail list logo