Re: Programmatically find out if node is overseer

2015-07-16 Thread Shai Erera
An easier way (IMO) and more 'official' is to use the CLUSTERSTATUS ( https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api18) or OVERSEERSTATUS ( https://cwiki.apache.org/confluence/display/solr/Collections+API#CollectionsAPI-api17) API. The OVERSEERSTATUS returns a

Re: Issue with using createNodeSet in Solr Cloud

2015-07-16 Thread Erick Erickson
There were a couple of cases where the "no live servers" was being returned when the error was something completely different. Does the Solr log show something more useful? And are you sure you have a configset named collection_A? 'cause this works (admittedly on 5.x) fine for me, and I'm quite su

Re: Programmatically find out if node is overseer

2015-07-16 Thread Erick Erickson
look at the overseer election ephemeral node in ZK, the first one in line is the current overseer. Best, Erick On Thu, Jul 16, 2015 at 3:42 AM, Markus Jelsma wrote: > Hello - i need to run a thread on a single instance of a cloud so need to > find out if current node is the overseer. I know we

Re: Multiple boost queries on a specific field

2015-07-16 Thread Erick Erickson
Why are you using q.alt? That uses much different query parsing logic that I believe bypasses the dismax stuff. Just use q=*:*. *:* also short-circuits most of the scoring since there's nothing to score there, try with q= real terms. As to your second query, see https://wiki.apache.org/solr/Funct

Re: SolrCloud 5.2.1 - collection creation error

2015-07-16 Thread Erick Erickson
It looks at a glance like you're in "Jar hell" and have one or more jar files from "somewhere else" in your classpath, possibly a jar file from an older Solr or one of the libraries. Best, Erick On Thu, Jul 16, 2015 at 6:17 AM, Aaron Gibbons wrote: > I'm installing SolrCloud 5.2.1 on 4 Ubuntu 14

Re: Setup cloud collection

2015-07-16 Thread Erick Erickson
Piling on to Shawn's comments. Leadership is a very misunderstood role when people start using SolrCloud, and it often gets conflated with the old "master" role in master/slave. There is, indeed, a small additional bit of processing that goes on on the leader node that's not done on replicas. But

serious JSON Facet bug

2015-07-16 Thread Yonik Seeley
To anyone using the JSON Facet API in released Solr versions: I discovered a serious memory leak while doing performance benchmarks (see http://yonik.com/facet_performance/ for some of the early results). Assuming you're in the evaluation / development phase of your project, I'd recommend using a

Re: What does replicationFactor really do?

2015-07-16 Thread Shawn Heisey
On 7/16/2015 10:46 AM, Jim.Musil wrote: > In 5.1, we are creating a collection using the Collections API with an > initial replicationFactor of X. This value is then stored in the state.json > file for that collection. > > If I try to issue ADDREPLICA on this cluster, it throws an error saying th

What does replicationFactor really do?

2015-07-16 Thread Jim . Musil
Hi, In 5.1, we are creating a collection using the Collections API with an initial replicationFactor of X. This value is then stored in the state.json file for that collection. If I try to issue ADDREPLICA on this cluster, it throws an error saying that there are no live nodes for additional r

Re: Setup cloud collection

2015-07-16 Thread solr . user . 1507
Thank you, very good explanation. Regards > On 16 Jul 2015, at 17:12, Shawn Heisey wrote: > >> On 7/16/2015 7:47 AM, solr.user.1...@gmail.com wrote: >> Thanks Shawn, but don't want to build something in front of Solr cloud to >> help Solr assign leader role to distribute load of indexing. >>

Re: Setup cloud collection

2015-07-16 Thread Shawn Heisey
On 7/16/2015 7:47 AM, solr.user.1...@gmail.com wrote: > Thanks Shawn, but don't want to build something in front of Solr cloud to > help Solr assign leader role to distribute load of indexing. > > Instead of doing this manual step (rebalance leaders) maybe one host should > not take the leader ro

Re: Setup cloud collection

2015-07-16 Thread solr . user . 1507
Thanks Shawn, but don't want to build something in front of Solr cloud to help Solr assign leader role to distribute load of indexing. Instead of doing this manual step (rebalance leaders) maybe one host should not take the leader role of multiple shards for same collection if the number of liv

SolrCloud 5.2.1 - collection creation error

2015-07-16 Thread Aaron Gibbons
I'm installing SolrCloud 5.2.1 on 4 Ubuntu 14.04 machines with 3 external zookeepers. I've installed the solr machines using Ansible following the "Taking Solr to Production" steps. 1. Download 5.2.1 2. Extract installation script 3. Run installation script Then I stop solr and make my

Re: Setup cloud collection

2015-07-16 Thread Shawn Heisey
On 7/16/2015 5:51 AM, SolrUser2015 wrote: > Hi, I'm new to solr! > > So downloaded version 5.2 and modified the solr file so it allows me to > create a 5 node cluster: > >> 5 shards and replication factor 3 < > > Now I see that one node is marked as leader for 3 shards. > > So my question is,

Re: Setup cloud collection

2015-07-16 Thread SolrUser2015
I'm looking at the cloud graph in the admin UI. The black dots with green indicates same node as leader for three shards out of five. Regards > On 16 jul 2015, at 14:31, Esther-Melaine Quansah > wrote: > > If you’ve set numShards to 5, then your indexes are split evenly across all 5 > shard

Re: Setup cloud collection

2015-07-16 Thread Esther-Melaine Quansah
If you’ve set numShards to 5, then your indexes are split evenly across all 5 shards and they should all be considered leaders in charge of updating the replicas with new information. Could it be the case that 1 of your shards has 3 replicas and is the leader for that specific shard? What specif

Multiple boost queries on a specific field

2015-07-16 Thread bengates
Hello, I'm trying to use the boost queries for the 1st time and I need some help. Let's assume my documents have a /provider /field, which is populated by a string, i.e. A, B, C, D, E. I'd like to assign weight to providers. A is /^2.0/, B is /^1.5/ and the others are 1.0. So, if I run the follo

Setup cloud collection

2015-07-16 Thread SolrUser2015
Hi, I'm new to solr! So downloaded version 5.2 and modified the solr file so it allows me to create a 5 node cluster: > 5 shards and replication factor 3 < Now I see that one node is marked as leader for 3 shards. So my question is, how can 1 node serve requests for 3 shards, wouldn't that be

Programmatically find out if node is overseer

2015-07-16 Thread Markus Jelsma
Hello - i need to run a thread on a single instance of a cloud so need to find out if current node is the overseer. I know we can already programmatically find out if this replica is the leader of a shard via isLeader(). I have looked everywhere but i cannot find an isOverseer. I did find the el

Using Facet API to get histograms for two keywords?

2015-07-16 Thread Kim Kangmo
Hi lovely Solr masters! I am using Facet API to get histograms for two keywords. For each keyword, the histogram calculates the number of documents with the keyword every hour. An example of list of documents : { q_s : "keyword1", when_dt : "2015-05-27T15:13:00.000Z" } { q_s : "keyword2", whe

Issue with using createNodeSet in Solr Cloud

2015-07-16 Thread Savvas Andreas Moysidis
Hello There, I am trying to use the createNodeSet parameter when creating a new collection but I'm getting an error when doing so. More specifically, I have four Solr instances running locally in separate JVMs (127.0.0.1:8983, 127.0.0.1:8984, 127.0.0.1:8985, 127.0.0.1:8986) and a standalone Zooke

Re: Rerank queries and grouping

2015-07-16 Thread Diego Ceccarelli
Hi Joel, Thanks for your reply, Yes, I considered the Collapse and Expand [1] , the problem is that I'll deploy it on a multishard instance and I want to retrieve the top N groups. I thing that collapse and expand could have two downsides: i) it won't guarantee the retrieval of N groups, I could