HEY, are you using the Analytics contrib?

2020-09-03 Thread David Smiley
I wonder who is using the Analytics contrib? Why do you use it instead of other Solr features like the JSON Faceting module that seem to have competing functionality. My motivation is to ascertain if it ought to be maintained as a 3rd party plugin/package or remain as a 1st party contrib where So

Re: What is the Best way to block certain types of queries/ query patterns in Solr?

2020-09-03 Thread David Smiley
The general assumption in deploying a search platform is that you are going to front it with a service you write that has the search features you care about, and only those. Only this service or other administrative functions should reach Solr. Be wary of making your service so flexible to suppor

Re: Error on searches containing specific character pattern

2020-09-03 Thread David Smiley
Hi, I looked at the code at those line numbers and it seems simply impossible that an ArrayIndexOutOfBoundsException could be thrown there because it's guarded by a condition ensuring the array is of length 1. https://github.com/apache/lucene-solr/blob/2752d50dd1dcf758a32dc573d02967612a2cf1ff/luce

SolrCloud (6.6.6) SSL Setup - Unable to create collection

2020-09-03 Thread Victor Kretzer
BACKGROUND: I'm attempting to setup SolrCloud (Solr 6.6.6) with an external zookeeper ensemble on Azure. I have three dedicated vms for the zookeeper ensemble and two for solr all running Ubuntu 18.04 LTS. I'm new to Solr (and Linux) and have been heavily relying on the Solr Ref Guide 6.6, most

Re: NullPointerException when select query on multiple IDs after splitting a shard

2020-09-03 Thread Erick Erickson
that syntax isn’t isn’t a syntax that Solr recognize intentionally at all. At very best, the select handler is using the default field (if it’s defined). Although not having a “q” parameter means all bets are off. On a local copy of 7.3 I have lying around I get a valid response, but using a Matc

Re: NullPointerException when select query on multiple IDs after splitting a shard

2020-09-03 Thread Louis
Yes, we are sure that this is not typo. Actually we did more experiments and found that 1) https://hostname:8983/solr/my_collection/select?ids=169455599|1 2) https://hostname:8983/solr/my_collection/select?q=id:169455599|1 3) https://hostname:8983/solr/my_collection/get?ids=169455599|1 1) thro

Re: Solr Cloud Query when one of the Solr instances goes down

2020-09-03 Thread Jeffrey McCallum
Hi Tyrone, We use an external load balancer across the nodes. If you use the java client you can query the zookeepers https://lucene.apache.org/solr/guide/7_1/solrcloud-query-routing-and-read-tolerance.html SolrCloud Query Routing And Read Tolerance | Apache Solr Reference Guide 7.1

Solr Cloud Query when one of the Solr instances goes down

2020-09-03 Thread Tyrone Tse
I have setup the example Solr Cloud that comes with the built in Zoo Keeper that runs on localhost:9993. I created my Solr Cloud instance with 2 nodes. Node 1 url is http://localhost:8983/solr/#/~cloud Node 2 url is http://localhost:7574/solr/#/~cloud Currently all Solr queries go through Node 1

Re: NullPointerException when select query on multiple IDs after splitting a shard

2020-09-03 Thread Erick Erickson
Hmm, an NPE is weird in any case, but assuming “ids” is a field, your syntax is wrong q=ids:111|222 or q=ids: (111 222) would do too. Are you sure you used this syntax before? Or is it a typo? Erick > On Sep 3, 2020, at 1:02 PM, Louis wrote: > > We are using SolrCloud 7.7.2 and having some tr

NullPointerException when select query on multiple IDs after splitting a shard

2020-09-03 Thread Louis
We are using SolrCloud 7.7.2 and having some trouble with multi shards. The initial number of shards in the collection was one(and 3 replica), and we have recently split a shard into 4 shards(and 3 replica for each shard) by using API call : /admin/collections?action=SPLITSHARD&collection=name&sha

Query performance degrades when TLOG replica

2020-09-03 Thread Ankit Shah
We have the following setup , solr 7.7.2 with 1 TLOG Leader & 1 TLOG replica with a single shard. We have about 34.5 million documents with an approximate index size of 600GB. I have noticed a degraded query performance whenever the replica is trying to (guessing here) sync or perform actual repli

Re: BasicAuth help

2020-09-03 Thread Jason Gerlowski
Hi Ali, 1. Solr doesn't have any support for LDAP authentication ootb (at least, as far as I'm aware). The BasicAuth plugin requires users to be defined in the JSON configuration. 2. What failed when you ran the documented BasicAuth example? What error messages did you get etc.? If there's som

Re: Replication in soft commit

2020-09-03 Thread Emir Arnautović
Hi Tushar, This is not usecase suitable for MS model. You should go with Solr Cloud, or if that is an overhead for you, have separate Solr, each doing indexing on its own. Solr provides eventual consistency anyway, so you should have some sort of stickiness in place even if you use MS model. Em

Re: Replication in soft commit

2020-09-03 Thread Tushar Arora
Hi Emir, Thanks for the response. Actually the use case is real time indexing from DB to solr in every second on the master server using queueing mechanism. So, I think instead of doing hard commits every second we should go for soft commits. And doing hard commits after some intervals. And we have

Re: Replication in soft commit

2020-09-03 Thread Emir Arnautović
Hi Tushar, Replication is file based process and hard commit is when segment is flushed to disk. It is not common that you use soft commits on master. The only usecase that I can think of is when you read your index as part of indexing process, but even that is bad practice and should be avoided