From solr-user-return-120189-apmail-lucene-solr-user-archive=lucene.apache.org@lucene.apache.org Tue Jan 26 10:13:33 2016 Return-Path: X-Original-To: apmail-lucene-solr-user-archive@minotaur.apache.org Delivered-To: apmail-lucene-solr-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2649C18FF6 for ; Tue, 26 Jan 2016 10:13:33 +0000 (UTC) Received: (qmail 33276 invoked by uid 500); 26 Jan 2016 10:13:28 -0000 Delivered-To: apmail-lucene-solr-user-archive@lucene.apache.org Received: (qmail 33208 invoked by uid 500); 26 Jan 2016 10:13:28 -0000 Mailing-List: contact solr-user-help@lucene.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: solr-user@lucene.apache.org Delivered-To: mailing list solr-user@lucene.apache.org Received: (qmail 33195 invoked by uid 99); 26 Jan 2016 10:13:28 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jan 2016 10:13:28 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DC6141804E9 for ; Tue, 26 Jan 2016 10:13:27 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.12 X-Spam-Level: X-Spam-Status: No, score=-0.12 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=yahoo.de Received: from mx1-eu-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id u1A8WoHAuTiG for ; Tue, 26 Jan 2016 10:13:21 +0000 (UTC) Received: from nm12-vm1.bullet.mail.ir2.yahoo.com (nm12-vm1.bullet.mail.ir2.yahoo.com [212.82.96.171]) by mx1-eu-west.apache.org (ASF Mail Server at mx1-eu-west.apache.org) with ESMTPS id 721D225E93 for ; Tue, 26 Jan 2016 10:13:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.de; s=s2048; t=1453803194; bh=Nni2+Ip19Qrjb82a/3YSTD4528p7fyLuM8DQnM9Gml0=; h=Subject:To:References:From:Date:In-Reply-To:From:Subject; b=iYC6Hfvf0hpZutqPfF7ozamFH5jjmB9ca3WdstDitZ6OpdtUpaqe3mfdCru5B8DoOGWwQjKrOCKBfwog8nbBVLhTxVgLJZjnDtj4roMm7Ys55bpYjPKv0RlyLY7xgeECGxuQmzFzHapBLsAVR+Gzl4XmC9kNyZY+FuVyn2aar2K4cns4l6OPwKon/HLBhVNWxG69Ci44kQd4RjiFXbwieVAeT2QFnLuRl3DNPYbAKaD+4Q5TtJyyiWD0KpdxqJufz+Y5Nt/lAbc7YvDalMp3YkIYndeneboRpIJUIeELVB6matkqX6pNCIuZ1Kwi/dNetH1thHav17htqY8Srngr9A== Received: from [212.82.98.51] by nm12.bullet.mail.ir2.yahoo.com with NNFMP; 26 Jan 2016 10:13:14 -0000 Received: from [46.228.39.89] by tm4.bullet.mail.ir2.yahoo.com with NNFMP; 26 Jan 2016 10:13:14 -0000 Received: from [127.0.0.1] by smtp126.mail.ir2.yahoo.com with NNFMP; 26 Jan 2016 10:13:14 -0000 X-Yahoo-Newman-Id: 77598.62833.bm@smtp126.mail.ir2.yahoo.com X-Yahoo-Newman-Property: ymail-3 X-YMail-OSG: wbtYm_UVM1lEaYGBigi9jc0xRMyTyG7XTKSpN_nKfAqOaPi Kx2NsYCHm2DrTP_6h6Ey5yQ58Zxle9HBxjGu.r61gGf03IPNRz_IVZn.ZZ3u RH2JHor0VzFXclE8wn4ixOxhh_NH1EpYzuxaNaooHhIZoPr7sA4oFPEu2vza _ueOzauO0mhMxKq7lis3xE2rX7Bx0YGKeDA.KdCgnPKgsG26Zb7ol1VRDeUv w0Hg5K7ZzwslgQF.uvJ.e2qGKqfNtvsJwvnIHeHFncEHX3bmzQke5PUq6Xaw a5jEY4XDJ7VzZxYuSid1Yo6A3TySwZQtUkFDiSuaEZquSIwo217X5j6K8zVY ypvgSQiGdacegPC3O9u9jDL2jF8z2MmfyCpQFeXoDNFBYNrDXBvvQehK851A Wb3fvkoPikRRMHskJ.T.ZCX.q.ujjyKqKJykJPjt7zYBdTPqLb1CkmVzTOBo _optxiu0Evk9UaFkHDl07hW59lGsfDaKodXOeVVzgfEFBMRPssB2fvT2BbTl Eo5lfTQ9N6LqXgwgAxVXCHsxohzbbpEsNQhRl6m8- X-Yahoo-SMTP: N0kNt.KswBC2xLa4izGaJnMXKnYuVKWAj4ysLA-- Subject: Re: Accessing Index Modification Information To: solr-user@lucene.apache.org References: <1518355.1516172.1453730747302.JavaMail.yahoo.ref@mail.yahoo.com> <1518355.1516172.1453730747302.JavaMail.yahoo@mail.yahoo.com> <56A63E51.50206@elyograg.org> From: =?UTF-8?Q?Bj=c3=b6rn_Keil?= Message-ID: <56A746BA.10006@yahoo.de> Date: Tue, 26 Jan 2016 11:13:14 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.5.1 MIME-Version: 1.0 In-Reply-To: <56A63E51.50206@elyograg.org> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA256 Am 25.01.2016 um 16:25 schrieb Shawn Heisey: > On 1/25/2016 7:05 AM, Björn Keil wrote: >> I am using Solr 5.1 (within a Tomcat6 server) and am trying to find out how get information from a Solr server about the exact time of the last commit and the total number of documents in a given index, and I need to query this information in a scripted way. >> >> The total number of documents in a given index is the minor problem, of course, since I can always send a query to the solr server with q=*:* and rows=0. But how I get the exact time which is displayed as "last modification time" in the user interface in the overview for the given index? > > Send a request to /solr/corename/admin/mbeans ... depending on what > specific info you are after, you may or may not need a URL parameter of > stats=true. > > http://host:port/solr/corename/admin/mbeans?stats=true > > This includes all the info you asked for. > > FYI, you really should not run Solr 5.x in Tomcat. It comes with a > container (Jetty) included, and has start scripts that use this > container. There is even an install script that works on most > non-Microsoft operating systems. Running Solr in the provided way will > yield a system that has been properly tuned for best results. A default > install of Tomcat is not tuned for Solr. > > Thanks, > Shawn > ... that helps a lot. Since I am processing the result with PHP I can even attach a &wt=phps to the request, which makes it a lot easier for me to process,. -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQIcBAEBCAAGBQJWp0a6AAoJEBJu2vWalbUMif8QALKeWMDNGZZPrs4QENOc0eE+ qw5jaljVjAwULvoqMqgk8PZRhC7U9RBt6tjYUZE4L9UTCgbqPbo2SLIGcbzkAkbM ILFK/vdo8ENRyqStFMOFKVtWgUouuYjdm5karPiYOSQF9Z+icxT99o+kMBlM2T2A xDFBjDLVJ42bukPdBTStvfdAq5/3kg5SO/hTs/uX+swI0v6ny7CWxwSz1EMJDODo JXJqHvVKqvExDN+P/sM3kpZD5BwPX7+zoxRVihZso1jEU78eM4hxEnZI+yUSAFhO vA51pV2nFu1quZrB6slwDkrFANnVS9eF66n+ZpBYzOE0hvsxMgjsJgGOxsyVhBse 7TfQ9liLDdOWRzgaWmja1ZenQIjA07aA78hRDJKHNF0hUZloIaWsm+/KteptfwXd hxZ6sAHzeOuJwCohi88M2d4IIPWjIF0YoFnw6NA4NXTt/sns3nE0oT2T4L6nEjzg Q6VVsm9guNFY2QqkYGCQJN1QIJnYFTkhJ8DK8DIIOcan3V0Tbirmw69zzLWmoE3N yH5IUqoS7J3Gcq7NPABpFp5kmrtORRj+rc11NZo+BP9oQQcGmc3GTuTDA9ddDjfp Ej1LSSn/9EmCVXwti2sbMyZKfKQ7Lqr5gmzXhVu1Zud38a/7qG8/g79+WQ9WAe6G nFwn0VAretomtfkEzzb6 =+2L6 -----END PGP SIGNATURE-----