Re: passing opts to all java calls in solr/solr.cmd

2018-08-24 Thread Jan Høydahl
Hi Sounds like it would be worth a low-pri issue. And it would be great if you guys could experiment to find the necessary changes and then contribute a patch back to the project, which we will then commit :) -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 25. aug.

Re: [help!] java.lang.NoSuchMethodError: org.apache.solr.client.solrj.request.schema.SchemaRequest

2018-08-24 Thread Steve Rowe
Hi, SchemaRequestJSONWriter class was removed in SOLR-12455[1], but this change has not been released yet (will be released with Solr 7.5). I’m guessing you’re using code built against branch_7x or master? If so, then one solution is to build against the released source for any 7.x version.

Re: Authorization Non- Admin user - SOLR

2018-08-24 Thread Jan Høydahl
Please share your security.json for us to be able to tell whether you configured something wrong -- Jan Høydahl, search solution architect Cominvent AS - www.cominvent.com > 24. aug. 2018 kl. 21:28 skrev Rathor, Piyush (US - Philadelphia) > : > > Hi Team, > > We are implementing Authorization

solr.cmd solr-*.port files

2018-08-24 Thread dshih
SOLR 7.4.0 On Windows, solr.cmd creates solr-*.port files in SOLR_TIP\bin. It would be nice if the location of these files could be configurable (SOLR_PID_DIR kind of makes sense?) Would this be worth a lower-priority bug? -- Sent from: http://lucene.472066.n3.nabble.com/Solr-User-f472068.html

passing opts to all java calls in solr/solr.cmd

2018-08-24 Thread dshih
SOLR 7.4.0 We recently encountered an issue on Windows where the cleanup/uninstall processes for our product were having difficulties deleting "hsperf" directories created in SOLR's data directory. Somehow, these directories ended up with permissions preventing anyone from deleting them. Further i

[help!] java.lang.NoSuchMethodError: org.apache.solr.client.solrj.request.schema.SchemaRequest

2018-08-24 Thread yx zhou
Got the following errow when i try to delete a field with Schema API, on Solr 7.0.1, cloud model java.lang.NoSuchMethodError: org.apache.solr.client.solrj.request.schema.SchemaRequest$SchemaRequestJSONWriter.writeString(Ljava/lang/String;)V at org.apache.solr.client.solrj.request.schema.SchemaR

LOG4J_CONFIG/LOG4J_PROPS inconsistencies between linux and windows

2018-08-24 Thread dshih
SOLR 7.4.0 In the linux solr script, LOG4J_PROPS is expected to be the path to a custom log4j2.xml file. LOG4J_CONFIG ends up being a collection of all -Dlog4j.configurationFile=BLAH parameter strings. In the windows solr.cmd script, LOG4J_PROPS is not respected at all. And LOG4J_CONFIG is expe

Authorization Non- Admin user - SOLR

2018-08-24 Thread Rathor, Piyush (US - Philadelphia)
Hi Team, We are implementing Authorization in SOLR version 7.3.0. We are able to create non-admin user but the user still has admin access (access to core, access to create fields). Can you please let us know how can we remove access to core, access to create fields from non-admin user using Au

Re: SOLR zookeeper connection timeout during startup is hardcoded to 10000ms

2018-08-24 Thread dshih
Sorry, yes 10,000 ms. We have a single test cluster (out of probably hundreds) where one node hits this consistently. I'm not sure what kind of issues (network?) that node is having. Generally though, we ship SOLR as part of our product, and we cannot control our customers' hardware and setup be

Why queryNorm is negative?

2018-08-24 Thread Wei Zhao
I got the debug info like this. It turns out that queryNorm is negative so the total solr score is negative too. It is not really a problem for me. But I'm curious why it can even be negative after reading its definition (1/sumOfSquaredWeights)? -1.1151254E-4 = (MATCH) product of: -0.0032338637

Re: Index Upgrader tool

2018-08-24 Thread Shawn Heisey
On 8/24/2018 12:44 AM, dami...@gmail.com wrote: Shawn, Is it possible to run optimize on the live collection? For example, /solr/collection/update?commit=true&optimize=true For all the reasons in the blog post that Erick referenced, we recommend that you do not do this. Something to note:  T

Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Mikhail Khludnev
There might be something like fq=filter(foo:[2 TO 3]) OR filter(foo:[3 TO 100]) On Fri, Aug 24, 2018 at 2:23 PM zhenyuan wei wrote: > Hi All, > I am confuse about How to hit filterCache? > > If filterQuery is range [3 to 100] , but not cache in FilterCache, > and filterCache already exists fil

Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Shawn Heisey
On 8/24/2018 5:23 AM, zhenyuan wei wrote: I am confuse about How to hit filterCache? If filterQuery is range [3 to 100] , but not cache in FilterCache, and filterCache already exists filterQuery range [2 to 100], My question is " Dose this filterQuery range [3 to 100] will fetch DocSet from

Re: How to trace one query?the debug/debugQuery info are not enough to find out why a query is slow

2018-08-24 Thread Shawn Heisey
On 8/24/2018 5:17 AM, zhenyuan wei wrote: Thanks again~ @Shawn @Jan Høydahl What is the recommend size of one shard?or how many docs per shard is recommend? My collection has 20 shard,each shard is 30~50GB。 There are no general rules.  Every situation will be different, and advice that works f

Re: Solr core corrupted for version 7.4.0, please help!

2018-08-24 Thread mmb1234
Thank you for https://issues.apache.org/jira/browse/SOLR-12691. I see it's marked as minor. Can we bump up the priority please ? The example of 2 cores ingest + transientCacheSize==1 was provided for reproduction reference only, and is not running in not production. Production setup on AWS use

Re: Index Upgrader tool

2018-08-24 Thread Erick Erickson
Yes, it's possible to run optimize on a live index. I wouldn't though, see: https://lucidworks.com/2017/10/13/segment-merging-deleted-documents-optimize-may-bad/ Lucene has _never_ guaranteed proper functioning of an index created with version X-2 with version X. It hasn't been super-obvious, but

Re: How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread Emir Arnautović
Hi, No it will not and it does not make sense to - it would still have to apply filter on top of cached results since they can include values with 2. You can consider a query as entry into cache. Thanks, Emir -- Monitoring - Log Management - Alerting - Anomaly Detection Solr & Elasticsearch Cons

How to hit filterCache?if filterQuery is a sub range query of another already cache range filterQuery

2018-08-24 Thread zhenyuan wei
Hi All, I am confuse about How to hit filterCache? If filterQuery is range [3 to 100] , but not cache in FilterCache, and filterCache already exists filterQuery range [2 to 100], My question is " Dose this filterQuery range [3 to 100] will fetch DocSet from FilterCache range[2 to 100]" ?

Re: How to trace one query?the debug/debugQuery info are not enough to find out why a query is slow

2018-08-24 Thread zhenyuan wei
Thanks again~ @Shawn @Jan Høydahl What is the recommend size of one shard?or how many docs per shard is recommend? My collection has 20 shard,each shard is 30~50GB。 @Shawn according to your wiki and e-mail reply, to achieve a better query performance ,I estimate the RAM requirement like follow: 7