Re: SolrClient.query take a 'collection' argument

2020-06-06 Thread Jim Anderson
Erick, Thanks for the clarification on the JVM heap space. I will invoke java as you advise. The program that I am writing is a java example that I took off the internet. The intent of the example is to read an existing core stored in solr. I created the core using instructions that I found in a

Re: SolrClient.query take a 'collection' argument

2020-06-06 Thread Erick Erickson
I’m not talking about how much memory your machine has, the critical bit it’s how much heap space is allocated to the JVM to run your app. You can increase it by specifying -Xmx2G say when you invoke Java. The version difference is suspicious indeed. I’m a little confused here. Exactly _what_

Re: SolrClient.query take a 'collection' argument

2020-06-06 Thread Jim Anderson
Erick, Thanks for the suggestion. I will keep it in the back of my mind for now. My PC has 8 G-bytes of memory and has roughly 4 G-bytes in use. If the forefront, I'm looking at the recommended solr/nutch combinations. I'm using Solr 8.5.1 with nutch 1.16. The recommendation is to use nutch 1.17

Re: SolrClient.query take a 'collection' argument

2020-06-06 Thread Erick Erickson
I’d look for an OutOfMemory problem before going too much farther. The simplest way to see if that’s in the right direction would be to run your SolrJ program with a massive memory size. Perhaps monitor your program with jconsole or similar to see if there’s any clues about memory usage. OOMs

Re: SolrClient.query take a 'collection' argument

2020-06-06 Thread Jim Anderson
Shawn, Thanks for the explanation. Very good response. The first paragraph helped clarify what a collection is. I have read quite about about Solr. There is so much to absorb that it is slowly sinking in. Your 2nd paragraph definitely answered my question, i.e. passing a core name should be ok

Re: SolrClient.query take a 'collection' argument

2020-06-05 Thread Shawn Heisey
On 6/5/2020 4:24 PM, Jim Anderson wrote: I am running my first solrj program and it is crashing when I call the method client.query("coreName",queryParms) The API doc says the string should be a collection. I'm still not sure about the difference between a collection and a core, so what I am

SolrClient.query take a 'collection' argument

2020-06-05 Thread Jim Anderson
I am running my first solrj program and it is crashing when I call the method client.query("coreName",queryParms) The API doc says the string should be a collection. I'm still not sure about the difference between a collection and a core, so what I am doing is likely illegal. Given that I have