AW: Setting system property

2015-05-25 Thread Clemens Wyss DEV
For my EmbeddedSolr-mode I do ... System.setProperty( "solr.allow.unsafe.resourceloading", "true" ); ... which works fine. For the remote-mode, i.e. Solr/jetty server I put SOLR_OPTS="$SOLR_OPTS -Dsolr.allow.unsafe.resourceloading=true" into solr.in.sh. Unfortunately this setting/option does not

Re: Solr relevancy score in percentage

2015-05-25 Thread Ahmet Arslan
Hi Edwin, Somehow, it is not recommended to display the relevancy score in percentage: https://wiki.apache.org/lucene-java/ScoresAsPercentages Ahmet On Tuesday, May 26, 2015 8:34 AM, Zheng Lin Edwin Yeo wrote: Hi, Would like to check, does the new version of Solr allows this function of dis

SUM in result grouping

2015-05-25 Thread Abhijit Deka
Is it possible to SUM in a Group query?I am using the Solr group function and it's retrieving the results.Now, I want to SUM the numeric field.Is it possible. My query is like this-http://localhost:8983/solr/glaas/select?%20q=abc%20&fl=TotalInvoices%20&wt=json%20&indent=true%20&debugQuery=true%2

Solr relevancy score in percentage

2015-05-25 Thread Zheng Lin Edwin Yeo
Hi, Would like to check, does the new version of Solr allows this function of display the relevancy score in percentage? I understand from the older version that it is not able to, and the only way is to take the highest score and use that as 100%, and calculate other percentage from that number (

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread Zheng Lin Edwin Yeo
I've managed to get it to work. In windows we have to put the full path name to the jar file in the jdk in Java Thank you so much for your help! Regards, Edwin On 26 May 2015 at 11:15, Zheng Lin Edwin Yeo wrote: > I have problems running the command 'jar xvf solr.war'. > When I try to run th

Re: Difference in running Solr with Jetty internally or externally

2015-05-25 Thread Erick Erickson
Actually, just use the new bin/solr start scripts and ignore whether it's running Jetty under the covers or not I think. Best, Erick On Mon, May 25, 2015 at 7:11 PM, Zheng Lin Edwin Yeo wrote: > Hi Shawn, > > Thanks for your reply. So the recommendation is still to stick with the > Jetty that's

YAJar

2015-05-25 Thread Robust Links
I am stuck in Yet Another Jarmagedon of SOLR. this is a basic question. i noticed solr 5.0 is using guava 14.0.1. My app needs guava 18.0. What is the pattern to override a jar version uploaded into jetty? I am using maven, and solr is being started the old way java -jar start.jar -Dsolr.solr.hom

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread Zheng Lin Edwin Yeo
I have problems running the command 'jar xvf solr.war'. When I try to run that, it will give an error: 'jar' is not recognized as an internal or external command, operable program or batch file. Is there anything which I might have missed out? Regards, Edwin On 26 May 2015 at 10:59, William B

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread William Bell
Err.. Here is the procedure for 5.1: mkdir war cp ../solr-5.1.0/server/webapps/solr.war . jar xvf solr.war cd WEB-INF vi web.xml Add this above the already there (and save it after adding this). GzipFilter org.eclipse.jetty.servlets.GzipFilter mimeTypes

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread William Bell
You need to edit the web.xml as I stated above and put the solr.war file back. Instead of "example" it is "server". Note: 4.10.4 and 5.1.0 uses the same Jetty. 8.1.10.v20130312 Here is the procedure for 5.1: mkdir war cp ../solr-5.1.0/example/webapps/solr.war . jar xvf solr.war cd WEB-INF vi

Re: Difference in running Solr with Jetty internally or externally

2015-05-25 Thread Zheng Lin Edwin Yeo
Hi Shawn, Thanks for your reply. So the recommendation is still to stick with the Jetty that's included in Solr? >From what you say, seems that if we use external Jetty, we have to do more configuration to tune it to fit Solr, and it will probably use more memory and run slower too.There might al

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread Zheng Lin Edwin Yeo
Although we do not plan to implement Solr to be access over the internet directly, it will be accessed via a local area network (Eg within the company). As there could potentially be alot of data indexed in Solr (especially rich-text documents), and that will probably take up alot of bandwidth, we

Re: SolrCloud 4.8 - Transaction log size over 1GB

2015-05-25 Thread Erick Erickson
The design is that the latest successfully flushed tlog file is kept for "peer sync" in SolrCloud mode. When a replica comes up, there's a chance that it's not very many docs behind. So, if possible, some of the docs are taken from the leader's tlog and replayed to the follower that's just been sta

Re: SolrCloud 4.8 - Transaction log size over 1GB

2015-05-25 Thread Vincenzo D'Amore
Hi Erick, I have tried indexing code I have few times, this is the behaviour I have tried out: When an indexing process starts, even if one or more tlog file exists, a new tlog file is created and all the new documents are stored there. When indexing process ends and does an hard commit, older ol

Re: Applying gzip compression in Solr 5.1

2015-05-25 Thread Upayavira
Why do you want gzip compression? Solr generally sits close to your application server, so compression should be less necesasry there. Solr isn't intended to be serving the public over the internet directly, particularly because of its lack of security so it should be feeding some other HTTP server

Re: Running Solr 5.1.0 as a Service on Windows

2015-05-25 Thread Upayavira
Zookeeper is just Java, so there's no reason why it can't be started in Windows. However, the startup scripts for Zookeeper on Windows are pathetic, so you are much more on your own than you are on Linux. There may be folks here who can answer your question (e.g. with Windows specific startup scr

Re: SolrCloud 4.8 - Transaction log size over 1GB

2015-05-25 Thread Erick Erickson
OK, assuming you're not doing any commits at all until the very end, then the tlog contains all the docs for the _entire_ run. The article really doesn't care whether the commits come from the solrconfig.xml or SolrJ client or curl. The tlog simply is not truncated until a hard commit happens, no m

Re: Difference in running Solr with Jetty internally or externally

2015-05-25 Thread Shawn Heisey
On 5/25/2015 3:28 AM, Zheng Lin Edwin Yeo wrote: > I understand that Jetty comes together with the Solr installation package, > and that by default, Solr uses Jetty internally to power it's HTTP stack. > > Would like to check, will there be any performance difference when we run > the Jetty intern

Re: Is it possible to do term Search for the filtered result set

2015-05-25 Thread Danesh Kuruppu
Many Thanks Erick and Upayavira, Solution works for me. On Thu, May 21, 2015 at 9:10 PM, Upayavira wrote: > and then facet on the tags field. > > &facet=on&facet.field=tags > > Upayavira > > On Thu, May 21, 2015, at 04:34 PM, Erick Erickson wrote: > > Have you tried > > > > &fq=type:A > > > >

Re: SolrCloud 4.8 - Transaction log size over 1GB

2015-05-25 Thread Vincenzo D'Amore
Hi Erick, thanks for your support. Reading the post I realised that my scenario does not apply the autoCommit configuration, now we don't have autoCommit in our solrconfig.xml. We need docs are searchable only after the indexing process, and all the documents are committed only at end of index pr

Re: Running Solr 5.1.0 as a Service on Windows

2015-05-25 Thread Zheng Lin Edwin Yeo
I've managed to get the Solr started as a Windows service after re-configuring the startup script, as I've previously missed out some of the custom configurations there. However, I still couldn't get the zookeeper to start the same way too. Are we able to use NSSM to start up zookeeper as a Micros

Difference in running Solr with Jetty internally or externally

2015-05-25 Thread Zheng Lin Edwin Yeo
Hi, I understand that Jetty comes together with the Solr installation package, and that by default, Solr uses Jetty internally to power it's HTTP stack. Would like to check, will there be any performance difference when we run the Jetty internally as compared to running an external copy of Jetty?