Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej M
Hi Team, We have enabled ssl. Solr version 8.8.2, zk - 3.6.3 When we try to get the base url using cloudsolrclient.getclusterstateprovider, it returns http url instead of HTTPS. Please find the screenshots while I debug, Code used From solr admin server - using /solr/admin/collection?action=C

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
your screenshots are unreadable, couldn't you copy and paste the text from the screen? On Wed, Jul 21, 2021 at 9:18 AM Reej M wrote: > Hi Team, > > We have enabled ssl. Solr version 8.8.2, zk - 3.6.3 > When we try to get the base url using > cloudsolrclient.getclusterstateprovider, it returns ht

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej Nayagam
Hi Sorry, My offic system doesn't have internet for security reasons. The issue is we have enabled ssl in solr and we try to get the clusterstate as below cloudsolrclient.getclusterstateprovider.getclusterstate() then using the clusterstate doccollection DocCollection dc = clusterstate.getCollect

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
Sorry for being so rude, I was in a hurry and just a while after the mail was sent I thought you weren't in the position to take a screenshot. On Wed, Jul 21, 2021 at 10:41 AM Reej Nayagam wrote: > Hi Sorry, > My offic system doesn't have internet for security reasons. > The issue is we have en

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
Have you double checked how ssl has been configured? I think this doc could help https://solr.apache.org/guide/6_6/enabling-ssl.html#EnablingSSL-SolrCloud And double check the "clusterprop" urlScheme On Wed, Jul 21, 2021 at 11:01 AM Vincenzo D'Amore wrote: > Sorry for being so rude, I was in a

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
this is your version, https://solr.apache.org/guide/8_8/enabling-ssl.html#EnablingSSL-SolrCloud anyway, pay attention to clusterprop https://solr.apache.org/guide/8_8/enabling-ssl.html#update-cluster-properties-for-existing-collections On Wed, Jul 21, 2021 at 11:04 AM Vincenzo D'Amore wrote: > H

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej M
> On 21 Jul 2021, at 5:07 PM, Vincenzo D'Amore wrote: > Hi, Is ok sometime all of us just loose our cool. By the way we have followed the same steps as per the documentation only. Im trying to clear the zk data, clear everything and recheck again if that might help. Thanks > this is your ve

Solr stop doesn't cope with zombie process - should it?

2021-07-21 Thread Colvin Cowie
Hello, When calling solr stop on linux, this command is used *CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`* https://github.com/apache/solr/blob/122c88a0748769432ef62cc3fb94c2226dd67aa7/solr/bin/solr#L871 If Solr has stopped but remains as a zombie process then

Solr stop doesn't cope with zombie process - should it?

2021-07-21 Thread Colvin Cowie
Hello, When calling solr stop on linux, this command is used *CHECK_PID=`ps auxww | awk '{print $2}' | grep -w $SOLR_PID | sort -r | tr -d ' '`* https://github.com/apache/solr/blob/122c88a0748769432ef62cc3fb94c2226dd67aa7/solr/bin/solr#L871 If Solr has stopped but remains as a zombie process the

Error in Fq parsing while using multiple values in solr 8.7

2021-07-21 Thread Satya Nand
Hi, We have a filter query in our system "fq=negativeattribute:(citychennai%20citydelhi)", in solr 6.5 it was working fine. solr 6.5 parsed query as negativeattribute:citychennai negativeattribute:citydelhi After upgrading the solr to 8.7, this query broke. It is not working as before solr 8.

Result set order when searching on "*" (asterisk character)

2021-07-21 Thread Steven White
Hi everyone, When I search on "*" (asterisk character) what's the result sort order based on? Thanks Steven

Re: Result set order when searching on "*" (asterisk character)

2021-07-21 Thread Vincenzo D'Amore
if no sort options are configure, just try to add the score field you'll see all the documents (are ordered by score), which usually when there are no clause is 1. On Wed, Jul 21, 2021 at 4:36 PM Steven White wrote: > Hi everyone, > > When I search on "*" (asterisk character) what's the result s

Re: Solr stop doesn't cope with zombie process - should it?

2021-07-21 Thread Mike Drob
That seems like a reasonable check to add, the only caution I would advise is that a lot of developers use macs for local testing so make sure that whatever flags you invoke are generally cross platform compatible, or hidden behind appropriate conditions. On Wed, Jul 21, 2021 at 5:59 AM Colvin Cow

Re: Error in Fq parsing while using multiple values in solr 8.7

2021-07-21 Thread Shawn Heisey
On 7/20/2021 11:37 PM, Satya Nand wrote: We have a filter query in our system "fq=negativeattribute:(citychennai%20citydelhi)", in solr 6.5 it was working fine. solr 6.5 parsed query as name="parsed_filter_queries"> negativeattribute:citychennai negativeattribute:citydelhi After upgrading the

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej Nayagam
Hi All, I still face the same issue. Anyone had this issue before? Im making client connection as below, CloudSolrClinet client = new CloudSolrClient.Builder("solrURL").build(); clusterstate = client.getClusterstateProvider().getClusterState(); when I check the replicas inside the cluster state th

RE: Solr nodes crashing

2021-07-21 Thread Jon Morisi
Thanks for the help Shawn and Walter. After increasing the open files setting to 128000 and increasing the JVM-Memory to 16 GB, I was able to load my documents. I now have a collection with 2.3 T rows / ~480 GB running on a 4-node cluster. I have found that complicated queries (searching for

Re: Solr nodes crashing

2021-07-21 Thread Mike Drob
You may want to look into enabling docvalues for your fields in your scheme, if not already enabled. That often helps with memory usage during query, but requires a reindex of your data. There are also first searches and new searches queries you can configure in your Solr config, those would be ab

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Timothy Potter
Does your `solrURL` value you're passing to `CloudSolrClient.Builder` start with `https`? On Wed, Jul 21, 2021 at 10:12 AM Reej Nayagam wrote: > > Hi All, > > I still face the same issue. Anyone had this issue before? > Im making client connection as below, > CloudSolrClinet client = new CloudSol

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
Hi Reej, I'm used to instantiate a new CloudSolrClient with the zookeeper ensemble. Well, something like this: final List zkServers = new ArrayList(); zkServers.add("zookeeper1:2181"); zkServers.add("zookeeper2:2181"); zkServers.add("zookeeper3:2181"); final SolrClient client = new CloudS

How to disable transaction logs in solr cloud ?

2021-07-21 Thread Pratik Patel
Hello, I want to disable transaction logs in solr cloud to test an experiment. I am not sure how to do it. I tried to comment out the following section in the solrconfig.xml file but that results in the following error when a hard commit takes place through autoCommit. 2021-07-21 22:10:44.7

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Vincenzo D'Amore
Hi Reej, another question, why are you using the solrUrl? I assume you are using a list because the Builder(List solrUrls): > Provide a series of Solr URLs to be used when configuring CloudSolrClient instances. https://solr.apache.org/docs/8_8_0/solr-solrj/org/apache/solr/client/solrj/impl/CloudSol

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej Nayagam
Yes the passed url is with https *Thanks,* *Reej* On Thu, Jul 22, 2021 at 3:40 AM Timothy Potter wrote: > Does your `solrURL` value you're passing to `CloudSolrClient.Builder` > start with `https`? > > On Wed, Jul 21, 2021 at 10:12 AM Reej Nayagam wrote: > > > > Hi All, > > > > I still face t

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Reej Nayagam
I tried earlier with zk ensemble, but when i try to get the clusterstateprovider.getclusterstate , it throws me "NO such method error : org.noggit.JSONParser.getFlags() so I was using the solrurl, i've added the jars solr-core-8.8.2, solr-solrj-8.8.2, zookeeper-3.6.3 and zookeeper-jute-3.6.3 Not su

Re: How to disable transaction logs in solr cloud ?

2021-07-21 Thread Shawn Heisey
On 7/21/2021 4:24 PM, Pratik Patel wrote: I want to disable transaction logs in solr cloud to test an experiment. I am not sure how to do it. What are you trying to accomplish? The transaction log is a required feature for SolrCloud. I know it's used for recovery operations, but based on wha

Re: Cloudsolrclient.getclusterstateprovider - returns incorrect base_url [http instead of https] - Urgent pls help

2021-07-21 Thread Shawn Heisey
On 7/21/2021 6:37 PM, Reej Nayagam wrote: I tried earlier with zk ensemble, but when i try to get the clusterstateprovider.getclusterstate , it throws me "NO such method error : org.noggit.JSONParser.getFlags() so I was using the solrurl, i've added the jars solr-core-8.8.2, solr-solrj-8.8.2, zoo

Re: Error in Fq parsing while using multiple values in solr 8.7

2021-07-21 Thread Satya Nand
Hi Shawn, Thank you, I also had my suspicion on the sow parameter. but I can't figure out why it is acting differently for analyzed type and non-analyzed. for example, If I give this query to solr 8.7 fq=negativeattribute:(citychennai mcat43120 20mcat43120)&debug=query&fq=mcatid:(43120 26527 430

min_popularity alternative for Solr Relatedness and Semantic Knowledge Graphs

2021-07-21 Thread Kerwin
Hi Solr users, I have a question on the relatedness and Semantic Knowledge Graphs feature in Solr. While the results are good with the out of box provision, I need some tweaking on the ability to specify filters or parameters based on only the foreground count. Right now only the min_popularity pa