NullPointerException in UpdateLog.applyOlderUpdates under solr 8&9 involving partial updates and high update load

2024-01-10 Thread Calvin Smith
Hi all, I'm seeing a sporadic NullPointerException (and 500 Solr response) with Solr 8.11.2 and 9.4.0 when performing lots of updates (full documents and partial updates, some in-place, most not) for a long period of time. This is the last step of building an index from scratch, during which, afte

Re: What I'm missing on this query (strange results with OR) ?

2024-01-10 Thread Shawn Heisey
On 1/10/24 15:22, Ing. Andrea Vettori wrote: Is it the expected behaviour that a query like someotherconditions OR -field:value returns different result than someotherconditions OR (-field:value) It seems to me that the first works like the OR is instead and AND. Welcome to the fun world of

What I'm missing on this query (strange results with OR) ?

2024-01-10 Thread Ing. Andrea Vettori
Is it the expected behaviour that a query like someotherconditions OR -field:value returns different result than someotherconditions OR (-field:value) It seems to me that the first works like the OR is instead and AND. Thank you! -- Ing. Andrea Vettori Sistemi Informativi B2BIres s.r.l.

RE: Re: Arbitrary Range

2024-01-10 Thread Dario.Viva
Hey Shawn I know that this specific API exists in java. I also used it before and it works as it should. But my Question was specificly about arbitrary ranges, this API only accepts start, end and gap. Which is fine for a lot of use cases, but sometimes one wants to have custom sized ranges and

Re: Arbitrary Range

2024-01-10 Thread Mikhail Khludnev
Implementation was done in https://issues.apache.org/jira/browse/SOLR-13272, but I don't think there's a SolrJ model object for arbitrary ranges. Dario, until it's contributed (which is quite welcome btw; just raised https://issues.apache.org/jira/browse/SOLR-17114) you can pass just instances of H

Re: Arbitrary Range

2024-01-10 Thread Shawn Heisey
On 1/10/24 05:32, dario.v...@coop.ch wrote: But when you want to use this from java with the solrj client I did not fond a good way to do this. https://solr.apache.org/guide/8_2/json-facet-api.html#range-facet What would be the preferred way to do this? At the URL you linked, it opens with a

Arbitrary Range

2024-01-10 Thread Dario.Viva
Hello Everyone at Solr When someone wants build a range facet with arbitrary range one could build a request with the help of the fallowing documentation. https://solr.apache.org/guide/8_6/json-facet-api.html#arbitrary-range But when you want to use this from java with the solrj client I did not

Re: SolrCloud availability when a server is down

2024-01-10 Thread Alessandro Benedetti
Hi Umberto, you can take inspiration from the org.apache.solr.client.solrj.impl.CloudSolrClient (if you are familiar with Java code). Rather than round robin, you can leverage Zookeeper to know who's alive at the moment (check the CloudSolrClient builder that takes Zookeeper nodes URLs as input).