RE: Any option to NOT return stack trace in Solr response?

2016-07-22 Thread Koorosh Vakhshoori
egards, Alex. Newsletter and resources for Solr beginners and intermediates: http://www.solr-start.com/ On 22 July 2016 at 03:35, Koorosh Vakhshoori <koorosh.vakhsho...@synopsys.com> wrote: > Hi all, > Got a Solr 5.2.1 installation. I am getting following error response when &

Any option to NOT return stack trace in Solr response?

2016-07-21 Thread Koorosh Vakhshoori
Hi all, Got a Solr 5.2.1 installation. I am getting following error response when calling the TERMS component. Now the error is not the point, I know what is going on in this instance. However, to address security concerns, I am trying to have Solr truncate the stack trace in the response. Of

RE: How for distributed search only log collective search response

2015-12-18 Thread Koorosh Vakhshoori
It turns out there is a better way to do this. It does not require code change in Solr, if you are using log4j. However, you need to migrate to log4j.xml file format. The solution is to use the filter feature. Here is what my console appender looks like with the filter:

How for distributed search only log collective search response

2015-12-14 Thread Koorosh Vakhshoori
In my use case, I have a number of shards where a query would run as distributed search. I am not using Solr Cloud, I have just a Solr server. Now, when the search runs, I see one entry for each shard query as well as the finally collective search query response. As the results, I am ending

Custom JUnit tests based on SolrTestCaseJ4 fails intermittently.

2012-07-18 Thread Koorosh Vakhshoori
Hi, I am trying out the Solr Alpha release against some custom and Junit codes I have written. I am seeing my custom JUnit tests failing once in a while. The tests are based on Solr Junit test code where they are extending SolrTestCaseJ4. My guess is the Randomized Testing coming across some

Solr 4.0 ALPHA: AbstractSolrTestCase depending on LuceneTestCase

2012-07-17 Thread Koorosh Vakhshoori
Hi, I have been developing extensions to SOLR code using 4.0 truck. For JUnit testing I am extending AbstractSolrTestCase which in the ALPHA release is located in JAR apache-solr-test-framework-4.0.0-ALPHA.jar. However, this class extends LuceneTestCase which comes from JAR

ContentStreamUpdateRequest method addFile in 4.0 release.

2012-06-07 Thread Koorosh Vakhshoori
In latest 4.0 release, the addFile() method has a new argument 'contentType': addFile(File file, String contentType) In context of Solr Cell how should addFile() method be called? Specifically I refer to the Wiki example: ContentStreamUpdateRequest up = new

Re: Display of highlighted search result should start with the beginning of the sentence that contains the search string.

2012-03-12 Thread Koorosh Vakhshoori
Hi Koji, I am Shyam's coworker. After some looking into this issue, I believe the problem of chopped word has to do with org.apache.lucene.search.vectorhighlight.SimpleFragListBuilder class' 'margin' field. It is set to 6 by default. My understanding is having margin value of greater than zero

Re: Indexing leave behind write.lock file.

2012-01-31 Thread Koorosh Vakhshoori
Here is how I got SolrJ to delete the write.lock file. I switched to the CoreContainer's remove() method. So the new code is: ... SolrCore curCore = container.remove(core1); curCore.close(); Now my understanding for why it is working. Based on Solr source code, the issue had to do with the

Indexing leave behind write.lock file.

2012-01-30 Thread Koorosh Vakhshoori
Hi, I am using SolrJ to reindex a core in a multiCore setup. The general flow of my program is as follows (pseudo code): String solrHome = /opt/solr/home; File solrXml = new File( solrHome, solr.xml ); container = new CoreContainer(); container.load(solrHome, solrXml); SolrServer solr = new

Question on XPATH use in Solr Cell.

2011-06-15 Thread Koorosh Vakhshoori
I am new to both Solr and Cell, so sorry if I am misusing some of the terminologies. So the problem I am trying to solve is to index a PDF document using Solr Cell where I want to exclude part of it via XPATH. I am using Solr release 3.1. When researching the user list, I came across one entry