SolrJ compatibility

2022-05-31 Thread Gohlke, Alexander
Hello, I am looking for information which version of the SolrJ client is compatible with the Solr server. So far I only found some information in the cwiki where it says: "SolrJ generally maintains backwards compatibility, so you can use a newer SolrJ with an older Solr, or an older SolrJ with

Re: Solr OOM issues

2022-05-31 Thread Parag Ninawe
Thank you for the replies. We are checking the suggested points On Fri, May 27, 2022 at 3:07 PM Parag Ninawe wrote: > Hi, > > We are currently using Solr 7.7 in Cloud mode > The issues we are facing is with Search queries where it takes down the solr > processes with JVM OOM issues. > > A recen

Solr scale function

2022-05-31 Thread Vincenzo D'Amore
Hi all, playing with the solr scale function I found a few corner cases where I need to scale only the results set. I found a workaround that works but it does not seem to be viable, because if I add an fq parameter the scale function still continues to work only on the q param . For example wit

Re: SolrJ compatibility

2022-05-31 Thread Shawn Heisey
On 5/31/22 03:37, Gohlke, Alexander wrote: Is SolrJ client in version 4.10.4 is compatible with a Solr server 8.11.1 or 9.0.0 ? Any information would be very appreciated. If you're not running in SolrCloud mode, that will probably work. When running SolrCloud, the client is MUCH more integrat

Re: Solr scale function

2022-05-31 Thread Mikhail Khludnev
Hello Vincenzo, I'm not getting your point: > if I add an fq parameter the scale function still continues to work only on the q param . well, but the function actually refers to q param: scale(sum(price,query($q)), 0, 1). What's your expectation values of query($q) with "q":"popularity:(1 OR

DocValues usage

2022-05-31 Thread Poorna Murali
Hi, We are planning to introduce docValues and reduce the usage of fieldcache in our application. I have a few doubts on these. Please help me to clarify them. 1) Will there be a performance impact if we use docValues as it does I/O read? Especially at the time of index generation? 2) Are there

Re: Solr scale function

2022-05-31 Thread Vincenzo D'Amore
Hi Mikhail, I'm trying to apply the scale function only to the result set (and not to the entire collection). And I discovered that adding "query($q)" to the scale function does the trick. In other words, adding "query($q)" forces solr to restrict the scale function only to the result set. But if

RE: Re: SolrJ compatibility

2022-05-31 Thread Gohlke, Alexander
On 2022/05/31 12:35:16 Shawn Heisey wrote: > If you're not running in SolrCloud mode, that will probably work. When > running SolrCloud, the client is MUCH more integrated into how Solr > itself works, and you're less likely to be able to use a wildly > different SolrJ version. Hi Shawn, In fact,

Re: SolrJ compatibility

2022-05-31 Thread Jan Høydahl
For those using SolrCloud, you can read this in the upgrade notes: https://solr.apache.org/guide/solr/latest/upgrade-notes/major-changes-in-solr-9.html "If using CloudSolrClient to connect to your SolrCloud

Re: SolrJ compatibility

2022-05-31 Thread Walter Underwood
We had one 4.x cluster that was difficult to migrate, so until recently we were using SolrJ 4.x with our new Solr 8.7 clusters and with a Solr 4.10.4 cluster. We were not doing anything fancy like faceting. wunder Walter Underwood wun...@wunderwood.org http://observer.wunderwood.org/ (my blog)

Re: SolrJ connection handling, best practice(s)?

2022-05-31 Thread Christopher Schultz
Jan and Shawn, On 5/30/22 10:01, Jan Høydahl wrote: To me it looks like it defaults to 1 max connections per route in 8.11? And you can override that if y

Re: SolrJ connection handling, best practice(s)?

2022-05-31 Thread Christopher Schultz
Shawn, On 5/30/22 10:05, Shawn Heisey wrote: On 5/30/2022 7:06 AM, Shawn Heisey wrote: What version of SolrJ are you using in your code?  For a long time, SolrJ defaulted to an HttpClient that only allowed two threads per destination.  Then that was greatly increased.  Now from what I can dec

Upgrade SOLR 7.3 to 8.9,json.facet query performance drops a lot

2022-05-31 Thread slly
Hello everyone. We recently upgraded our online environment to a new solr version(8.9.0) from 7.3, we found that facet query performance decreased a lot. Solr 7.3 take about 100 milliseconds, but Solr 8.9 may take about 500 milliseconds. We exclude the effects of GC and caching. Are there

Re: Upgrade SOLR 7.3 to 8.9,json.facet query performance drops a lot

2022-05-31 Thread Mike Drob
I don't think this will make a huge difference, but would you be able to retest with Solr 8.11.1 instead of 8.9? Mike On Tue, May 31, 2022 at 10:54 AM slly wrote: > Hello everyone. > > > We recently upgraded our online environment to a new solr version(8.9.0) > from 7.3, we found that facet que

Re: SolrJ connection handling, best practice(s)?

2022-05-31 Thread Shawn Heisey
On 5/31/2022 9:36 AM, Christopher Schultz wrote: Thread pool or connection pool? Usually, you want your application threads to be waiting on that data, not handing execution off to another thread, only to wait for it to complete. Any asynchronous environment should be providing its own threads.

Re: Upgrade SOLR 7.3 to 8.9,json.facet query performance drops a lot

2022-05-31 Thread Michael Gibney
`json.facet` covers a lot of ground and can do a lot of different things under the hood. Would you be able to share more specific information about the kinds of `json.facet` request you're making, configuration of the fields in question, etc.? On Tue, May 31, 2022 at 11:54 AM slly wrote: > > Hell

Re: SolrJ connection handling, best practice(s)?

2022-05-31 Thread Christopher Schultz
Shawn, On 5/31/22 12:27, Shawn Heisey wrote: On 5/31/2022 9:36 AM, Christopher Schultz wrote: Thread pool or connection pool? Usually, you want your application threads to be waiting on that data, not handing execution off to another thread, only to wait for it to complete. Any asynchronous e

Collapsing on a field works, but expand=true does nothing

2022-05-31 Thread Andy Lester
I’m working on the collapse/expand functionality. I query for books, and I want to collapse my search results on their tf1flrid, basically a family ID. I also want to do an expand so I can see what titles were collapsed out. I’m looking at the docs here: https://solr.apache.org/guide/8_11/col

Re: Solr scale function

2022-05-31 Thread Mikhail Khludnev
Vincenzo, Can you elaborate what it means ' apply the scale function only to the result set (and not to the entire collection).' ? On Tue, May 31, 2022 at 4:33 PM Vincenzo D'Amore wrote: > Hi Mikhail, > > I'm trying to apply the scale function only to the result set (and not to > the entire col

Re: DocValues usage

2022-05-31 Thread Mikhail Khludnev
Hi, Poorna. Pls check inline below. On Tue, May 31, 2022 at 4:21 PM Poorna Murali wrote: > Hi, > > We are planning to introduce docValues and reduce the usage of fieldcache > in our application. > > I have a few doubts on these. Please help me to clarify them. > > 1) Will there be a performance

Solr Cloud and /export

2022-05-31 Thread James Greene
What do I have to configure or add to the request to have an /export call respond with docs from all shards? I currently only get documents from the leader when making an /export call (solr 8.11.1). Cheers, JAG

RE: Re: SolrJ compatibility

2022-05-31 Thread Gohlke, Alexander
Thank you Walter for sharing your experience. Alex On 2022/05/31 14:57:42 Walter Underwood wrote: > We had one 4.x cluster that was difficult to migrate, so until recently we > were using SolrJ 4.x with our new Solr 8.7 clusters and with a Solr 4.10.4 > cluster. > > We were not doing anything

Re: Re: SolrJ compatibility

2022-05-31 Thread David Hastings
If the solr indexing packages among all the different languages suddenly need to upgrade just because of solr cloud and can’t use http requests for indexing, that would be a bad bad thing. The cloud internals should handle anything indexing wise beyond “here is a document and it’s metadata” much li

RE: Re: DocValues usage

2022-05-31 Thread Poorna Murali
Thanks Mikhail! Regarding the id field, is it possible that while doing faceting or sorting, the id fields will be loaded in field cache by default? On 2022/05/31 21:27:57 Mikhail Khludnev wrote: > Hi, Poorna. > Pls check inline below. > > On Tue, May 31, 2022 at 4:21 PM Poorna Murali > wrote: >