Unexpected behavior of ms() function

2022-09-13 Thread Piotr Matusiak
Hi, on solr version 8.11.1 I have found a strange behavior of ms() function. I have a date field (solr.DatePointField) AttDateTime1 with value 2022-09-09T00:00:00Z. Now when I use ms(AttDateTime1) I was expecting a long with number of milliseconds, but instead it returns a date 2022-09-09T00:00

Re: JDBC stream expression

2022-09-13 Thread James Greene
I found this jira bug which seems suspiciously similar to the issue i'm having with the mariadb jdbc driver.@joelbernstein, what other location should I place the jdbc client jar file to aid its ability to load when using the stream endpoint: https://solr.apache.org/guide/8_11/stream-source-ref

Re: JDBC stream expression

2022-09-13 Thread Houston Putman
Is this the jira issue you are referring to: SOLR-16131 ? If so that got fixed in 9.0. Otherwise, even though the driver works for the DIH endpoint, the classloading between the jdbc streaming expression and DIH is likely very different. So try and

Re: JDBC stream expression

2022-09-13 Thread James Greene
Houston, Placing the jdbc driver in the webapp lib folder did the trick!!! +1 +1 +1 +1 +1 Do you know if it's possible to use a field value from a stream in a 'subquery'? I'm hoping to take the stream source and for each record run a jdbc query like 'delete from tbl where id = returning ifnull(

Configure Jetty custom error page under Solr

2022-09-13 Thread David Ahia
As a result of a security scan of Solr, I am being asked to block the display of error messages. Is there a recommended guide for configuring Jetty with a custom error page to ensure error messages are not displayed through the web UI? David Ahia, Principal Application Developer This message (

Re: Configure Jetty custom error page under Solr

2022-09-13 Thread Shawn Heisey
On 9/13/22 14:08, David Ahia wrote: As a result of a security scan of Solr, I am being asked to block the display of error messages. Is there a recommended guide for configuring Jetty with a custom error page to ensure error messages are not displayed through the web UI? If anything other th

Can I force-delete a field?

2022-09-13 Thread dmitri maziuk
Hi all, apologies if this is a FAQ, my google-fu is failing me. I've a field whose name I typo-ed in a data importer script, so Solr dutifully created the new TYPOed_field and a TYPOed_field_str as per my directive. Now it won't let me delete either because "it's referred to by at least on

Re: Can I force-delete a field?

2022-09-13 Thread Shawn Heisey
On 9/13/22 18:38, dmitri maziuk wrote: I've a field whose name I typo-ed in a data importer script, so Solr dutifully created the new TYPOed_field and a TYPOed_field_str as per my directive. Now it won't let me delete either because "it's referred to by at least one copyfield directive". I

SolrCloud nodes do not attempt to rediscover Zookeeper nodes in a kubernetes environment?

2022-09-13 Thread Jonathan Tan
Hi All! We're coming across a behaviour in SolrCloud + ZK in a kubernetes environment that I was looking for some help/clarification with. Specifically, if a ZK cluster is not serving requests because 2 of the 3 nodes are down, SOLR nodes that attempt to connect to it will fail, and not become Re

Re: SolrCloud nodes do not attempt to rediscover Zookeeper nodes in a kubernetes environment?

2022-09-13 Thread Shawn Heisey
On 9/13/22 19:26, Jonathan Tan wrote: So what I'm trying to verify... It looks like SOLR doesn't attempt to reconnect to ZK if it has previously failed. Is that intentional? Is there a way to get it to do so? What version of Solr, and what version of ZK? And something that may be important ...

Re: SolrCloud nodes do not attempt to rediscover Zookeeper nodes in a kubernetes environment?

2022-09-13 Thread Jonathan Tan
Oops, good question. It's ZK 3.8, and Solr 8.11. And no, we're allowing kube to specify the IP addresses of the pods, and kube is unlikely to be using the same IPs. Does SOLR resolve domain names for ZK and store the IP addresses...? On Wed, Sep 14, 2022 at 11:32 AM Shawn Heisey wrote: > On

Re: SolrCloud nodes do not attempt to rediscover Zookeeper nodes in a kubernetes environment?

2022-09-13 Thread Jonathan Tan
So I'm flipping through the SOLR source code now (and based on the logs), and this is what I'm seeing. The SolrZkClient takes a startUpTimeOut and a startUpZkTimeOut property, and only checks if ZK is available within that period. Once that timeout has exceeded, then it declares that the SOLR node

Re: SolrCloud nodes do not attempt to rediscover Zookeeper nodes in a kubernetes environment?

2022-09-13 Thread Shawn Heisey
On 9/13/22 20:07, Jonathan Tan wrote: The SolrZkClient takes a startUpTimeOut and a startUpZkTimeOut property, and only checks if ZK is available within that period. Once that timeout has exceeded, then it declares that the SOLR node was unable to load the cores, and then it does nothing else. Su