-----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-----