Re: Migrating from Solr 6.6 getStatistics() to Solr 7.x

2018-04-06 Thread ziqi zhang
Thank you! On Fri, Apr 6, 2018 at 10:34 PM, Chris Hostetter wrote: > > : In my Solr 6.6 based code, I have the following line that get the total > : number of documents in a collection: > : > : totalDocs=indexSearcher.getStatistics().get("numDocs")) > ... > : With Solr 7.2.1, 'getStatist

Migrating from Solr 6.6 getStatistics() to Solr 7.x

2018-04-06 Thread ziqi zhang
Hi all In my Solr 6.6 based code, I have the following line that get the total number of documents in a collection: totalDocs=indexSearcher.getStatistics().get("numDocs")) where indexSearcher is an instance of "SolrIndexSearcher". With Solr 7.2.1, 'getStatistics' is no longer available, and it

Re: EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-03 Thread Ziqi Zhang
dworks.com On Aug 2, 2016, at 12:03 PM, Ziqi Zhang wrote: Hi, I am using Solr, Solrj 6.1, and Maven to manage my project. I use maven to build a jar-with-dependency and run a java program pointing its classpath to this jar. However I keep getting errors even when I just try to create

EmbeddedSolrServer problem when using one-jar-with-dependency including solr

2016-08-02 Thread Ziqi Zhang
Hi, I am using Solr, Solrj 6.1, and Maven to manage my project. I use maven to build a jar-with-dependency and run a java program pointing its classpath to this jar. However I keep getting errors even when I just try to create an instance of EmbeddedSolrServer: */code/ *String

strange error on closing server

2016-02-21 Thread Ziqi Zhang
Hi all I am having a strange error whenever I close my index (calling server.close() The error is shown below. I am not sure where I should look - the configuration file? The code? Or index fragments? Or else? The code causing the error is very simple, just the “close()” method. Many thanks!

Does solr remove "\r" from text content for indexing?

2015-10-04 Thread Ziqi Zhang
Hi I am trying to pin-point a mismatch between the offsets produced by solr indexing process when I use the offsets to substring from the original document content. It seems that if the text content contains "\r" (windows carriage sign), solr automatically removes it, so "ok\r\nthis is the te

Re: how to improve concurrent request performance and stress testing

2008-02-07 Thread Ziqi Zhang
Thank you so much! I will look into firstSearcher configuration next! thanks -- From: "Chris Hostetter" <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2008 8:56 PM To: Subject: Re: how to improve concurrent request performance and stress testin

Re: how to improve concurrent request performance and stress testing

2008-02-06 Thread Ziqi Zhang
eneck. What that point is depends on the hardware, index size, query complexity and rat, even JVM. Otis -- Sematext -- http://sematext.com/ -- Lucene - Solr - Nutch - Original Message From: Ziqi Zhang <[EMAIL PROTECTED]> To: solr-user@lucene.apache.org Sent: Wednesday, February

Re: how to improve concurrent request performance and stress testing

2008-02-06 Thread Ziqi Zhang
! -- From: "Yonik Seeley" <[EMAIL PROTECTED]> Sent: Wednesday, February 06, 2008 7:50 AM To: Subject: Re: how to improve concurrent request performance and stress testing On Feb 6, 2008 6:37 PM, Ziqi Zhang <[EMAIL PROTECTED]> wrote: I still do not unde

Re: how to improve concurrent request performance and stress testing

2008-02-06 Thread Ziqi Zhang
Thanks Yonik, It uses a thread per request, simultaneously (up to any limit configured by the app server) How can I change this setting then? I suppose it is to do with Jetty or Tomcat whichever hosts solr application, not through the solrconfig? I still do not understand why sending 100 r