Re: Bad return type exception

2016-01-10 Thread Shawn Heisey
On 1/10/2016 11:56 PM, Asanka Sanjaya Herath wrote: > I tried to create a solr client using following code. > > ​ solrClient = new CloudSolrClient(zkHost); > solrClient.setDefaultCollection(solrCollection); > ​ > Solr4j version:5.4.0 > > ​Project built successfully but in run time I get followin

Bad return type exception

2016-01-10 Thread Asanka Sanjaya Herath
Hi, I tried to create a solr client using following code. ​ solrClient = new CloudSolrClient(zkHost); solrClient.setDefaultCollection(solrCollection); ​ Solr4j version:5.4.0 ​Project built successfully but in run time I get following error.​ Any help is appreciated. Main class [org.apache.oozi

Spellcheck response format differs between a single core and SolrCloud

2016-01-10 Thread Ryan Yacyshyn
Hello, I am using the spellcheck component for spelling suggestions and I've used the same configurations in two separate projects, the only difference is one project uses a single core and the other is a collection on SolrCloud with three shards. The single core has about 56K docs and the one on

Re: Querying only replica's

2016-01-10 Thread Shawn Heisey
On 1/10/2016 12:00 PM, Robert Brown wrote: > I'm thinking more about how the external load-balancer will know if a > node is down, as to take it out the pool of active servers to even > attempt sending a query to. > > I could ping tho that just means the IP is alive. I could configure the > load-

Re: Configuring cores to persist in the event of Solr restart

2016-01-10 Thread Shawn Heisey
On 1/10/2016 2:29 AM, Allan Kamau wrote: > We are able to load several cores into Solr 5.3.1. > The problem is that after a restart of the server, these cores seem to get > deleted. > Is there a way to make cores loaded in Solr 5.x survive a server restart. > Could there be a setting in solr.xml or

Re: Querying only replica's

2016-01-10 Thread Robert Brown
I'm thinking more about how the external load-balancer will know if a node is down, as to take it out the pool of active servers to even attempt sending a query to. I could ping tho that just means the IP is alive. I could configure the load-balancer to actually try a query, but this may be (

Re: Selective Replication from master to slave

2016-01-10 Thread Erick Erickson
This is really confusing. You say: bq: Basically I am going with master slave approach OK, classic Solr master/slave? Or are you using this in a different context? bq: the application pushing data to master will need to preview the search and if the search is deemed useful/appropriate I need the

Re: Solr search and index rate optimization

2016-01-10 Thread Erick Erickson
bq: Well, a good reason would be if you want your system to continue to operate if 2 ZK nodes lose communication with the rest of the cluster or go down completely My argument is usually that if you are losing 2 of 3 ZK nodes at the same time with any regularity, you probably have problems that wo

Re: Querying only replica's

2016-01-10 Thread Erick Erickson
For health checks, you can go ahead and get the real IP addresses and ping them directly if you care to Or just let Zookeeper do that for you. One of the tasks of Zookeeper is pinging all the machines with all the replicas and, if any of them are unreachable, telling the rest of the cluster tha

Re: Configuring cores to persist in the event of Solr restart

2016-01-10 Thread Erick Erickson
The key here is whether you are connecting to the same Zookeeper, an internal or an external one. So if you use the -c option without providing a -z option, you use the embedded Zookeeper. If you later start with a -z option, that's a _different_ zookeeper. And, btw, Zookeeper defaults to keepin

Re: Configuring cores to persist in the event of Solr restart

2016-01-10 Thread Allan Kamau
Let me investigate once more how the cores we have in our deployment were created and I will provide an update as well as a better problem description. Allan. On Sun, Jan 10, 2016 at 3:14 PM, Alexandre Rafalovitch wrote: > Did you by any chance start the first-time with bin/solr start -e > > An

Re: Querying only replica's

2016-01-10 Thread Robert Brown
Thanks Erick, For the health-checks on the load-balancer side, would you recommend a simple query, or is there a reliable ping or similar for this scenario? Cheers, Rob On 09/01/16 23:44, Erick Erickson wrote: bq: is it best/good to get the CLUSTERSTATUS via the collection API and explicitl

Re: Configuring cores to persist in the event of Solr restart

2016-01-10 Thread Alexandre Rafalovitch
Did you by any chance start the first-time with bin/solr start -e And then bin/solr restart? In that case, the solr home was not set after restart and needs to be passed in manually. Or some other unexpected solr.home situation. Just poking in the dark here. Regards, Alex On 10 Jan 2016 8:2

Re: Configuring cores to persist in the event of Solr restart

2016-01-10 Thread davidphilip cherian
What do you mean by cores getting deleted? Files created on filesystem for these cores disappear? How are you starting and stopping solr? Is this solr cloud or standalone mode? On Sun, Jan 10, 2016 at 2:59 PM, Allan Kamau wrote: > We are able to load several cores into Solr 5.3.1. > The problem

Configuring cores to persist in the event of Solr restart

2016-01-10 Thread Allan Kamau
We are able to load several cores into Solr 5.3.1. The problem is that after a restart of the server, these cores seem to get deleted. Is there a way to make cores loaded in Solr 5.x survive a server restart. Could there be a setting in solr.xml or perhaps the "core.properties" files that would ena