You are viewing a plain text version of this content. The canonical link for it is here.
Posted to solr-user@lucene.apache.org by Joel Nylund <jn...@yahoo.com> on 2009/11/19 16:31:17 UTC
getting total index size & last update date/time from query
Hi,
Looking for total number of documents in my index and the last updated
date/time of the index.
Is there a way to get this through the standard query q=?
if not, what is the best way to get this info from solr.
thanks
Joel
Re: getting total index size & last update date/time from query
Posted by Erik Hatcher <er...@gmail.com>.
The drawback to stats.jsp is that the XML it just that. It isn't in
standard response writer format, so you can only get XML, not JSON,
etc like you can with /admin/luke.
And as mentioned in my previous post, use numTerms=0 for /admin/luke
to speed it up.
Erik
On Nov 21, 2009, at 12:00 AM, Lance Norskog wrote:
> solr/admin/stats.jsp gives a much larger XML dump and also includes
> these two data items.
>
> Note that Luke can walk the entire index data structures, so if you
> have a large index it's like playing with fire.
>
> On Thu, Nov 19, 2009 at 8:54 AM, Binkley, Peter
> <Pe...@ualberta.ca> wrote:
>> The Luke request handler (normally available at <solr>/admin/luke)
>> will
>> give you the document count (not size on the disk, though, if that's
>> what you want) and last update and other info:
>>
>> <lst name="index">
>> <int name="numDocs">14591</int>
>> <int name="maxDoc">14598</int>
>> <int name="numTerms">128730</int>
>> <long name="version">1196962176380</long>
>> <bool name="optimized">false</bool>
>> <bool name="current">true</bool>
>> <bool name="hasDeletions">true</bool>
>> <str name="directory">.... s/solr/data/index</str>
>> <date name="lastModified">2009-11-19T16:44:45Z</date>
>> </lst>
>>
>> See http://wiki.apache.org/solr/LukeRequestHandler
>>
>> Peter
>>
>>
>>
>>> -----Original Message-----
>>> From: Joel Nylund [mailto:jnylund@yahoo.com]
>>> Sent: Thursday, November 19, 2009 8:31 AM
>>> To: solr-user@lucene.apache.org
>>> Subject: getting total index size & last update date/time from query
>>>
>>> Hi,
>>>
>>> Looking for total number of documents in my index and the
>>> last updated date/time of the index.
>>>
>>> Is there a way to get this through the standard query q=?
>>>
>>> if not, what is the best way to get this info from solr.
>>>
>>> thanks
>>> Joel
>>>
>>>
>>
>
>
>
> --
> Lance Norskog
> goksron@gmail.com
Re: getting total index size & last update date/time from query
Posted by Lance Norskog <go...@gmail.com>.
solr/admin/stats.jsp gives a much larger XML dump and also includes
these two data items.
Note that Luke can walk the entire index data structures, so if you
have a large index it's like playing with fire.
On Thu, Nov 19, 2009 at 8:54 AM, Binkley, Peter
<Pe...@ualberta.ca> wrote:
> The Luke request handler (normally available at <solr>/admin/luke) will
> give you the document count (not size on the disk, though, if that's
> what you want) and last update and other info:
>
> <lst name="index">
> <int name="numDocs">14591</int>
> <int name="maxDoc">14598</int>
> <int name="numTerms">128730</int>
> <long name="version">1196962176380</long>
> <bool name="optimized">false</bool>
> <bool name="current">true</bool>
> <bool name="hasDeletions">true</bool>
> <str name="directory">.... s/solr/data/index</str>
> <date name="lastModified">2009-11-19T16:44:45Z</date>
> </lst>
>
> See http://wiki.apache.org/solr/LukeRequestHandler
>
> Peter
>
>
>
>> -----Original Message-----
>> From: Joel Nylund [mailto:jnylund@yahoo.com]
>> Sent: Thursday, November 19, 2009 8:31 AM
>> To: solr-user@lucene.apache.org
>> Subject: getting total index size & last update date/time from query
>>
>> Hi,
>>
>> Looking for total number of documents in my index and the
>> last updated date/time of the index.
>>
>> Is there a way to get this through the standard query q=?
>>
>> if not, what is the best way to get this info from solr.
>>
>> thanks
>> Joel
>>
>>
>
--
Lance Norskog
goksron@gmail.com
Re: getting total index size & last update date/time from query
Posted by Erik Hatcher <er...@gmail.com>.
Use numTerms=0 - /admin/luke?numTerms=0 that'll speed it up tons.
Erik
On Dec 1, 2009, at 10:46 AM, Joel Nylund wrote:
> Hi, Luke worked, but we are finding it really slow in our
> environment (8-10 seconds). Is there a way to just get document
> count & last index time with a faster call, possibly passing
> something to luke?
>
> thanks
> Joel
>
> On Nov 19, 2009, at 11:54 AM, Binkley, Peter wrote:
>
>> The Luke request handler (normally available at <solr>/admin/luke)
>> will
>> give you the document count (not size on the disk, though, if that's
>> what you want) and last update and other info:
>>
>> <lst name="index">
>> <int name="numDocs">14591</int>
>> <int name="maxDoc">14598</int>
>> <int name="numTerms">128730</int>
>> <long name="version">1196962176380</long>
>> <bool name="optimized">false</bool>
>> <bool name="current">true</bool>
>> <bool name="hasDeletions">true</bool>
>> <str name="directory">.... s/solr/data/index</str>
>> <date name="lastModified">2009-11-19T16:44:45Z</date>
>> </lst>
>>
>> See http://wiki.apache.org/solr/LukeRequestHandler
>>
>> Peter
>>
>>
>>
>>> -----Original Message-----
>>> From: Joel Nylund [mailto:jnylund@yahoo.com]
>>> Sent: Thursday, November 19, 2009 8:31 AM
>>> To: solr-user@lucene.apache.org
>>> Subject: getting total index size & last update date/time from query
>>>
>>> Hi,
>>>
>>> Looking for total number of documents in my index and the
>>> last updated date/time of the index.
>>>
>>> Is there a way to get this through the standard query q=?
>>>
>>> if not, what is the best way to get this info from solr.
>>>
>>> thanks
>>> Joel
>>>
>>>
>
Re: getting total index size & last update date/time from query
Posted by Joel Nylund <jn...@yahoo.com>.
Hi, Luke worked, but we are finding it really slow in our environment
(8-10 seconds). Is there a way to just get document count & last index
time with a faster call, possibly passing something to luke?
thanks
Joel
On Nov 19, 2009, at 11:54 AM, Binkley, Peter wrote:
> The Luke request handler (normally available at <solr>/admin/luke)
> will
> give you the document count (not size on the disk, though, if that's
> what you want) and last update and other info:
>
> <lst name="index">
> <int name="numDocs">14591</int>
> <int name="maxDoc">14598</int>
> <int name="numTerms">128730</int>
> <long name="version">1196962176380</long>
> <bool name="optimized">false</bool>
> <bool name="current">true</bool>
> <bool name="hasDeletions">true</bool>
> <str name="directory">.... s/solr/data/index</str>
> <date name="lastModified">2009-11-19T16:44:45Z</date>
> </lst>
>
> See http://wiki.apache.org/solr/LukeRequestHandler
>
> Peter
>
>
>
>> -----Original Message-----
>> From: Joel Nylund [mailto:jnylund@yahoo.com]
>> Sent: Thursday, November 19, 2009 8:31 AM
>> To: solr-user@lucene.apache.org
>> Subject: getting total index size & last update date/time from query
>>
>> Hi,
>>
>> Looking for total number of documents in my index and the
>> last updated date/time of the index.
>>
>> Is there a way to get this through the standard query q=?
>>
>> if not, what is the best way to get this info from solr.
>>
>> thanks
>> Joel
>>
>>
RE: getting total index size & last update date/time from query
Posted by "Binkley, Peter" <Pe...@ualberta.ca>.
The Luke request handler (normally available at <solr>/admin/luke) will
give you the document count (not size on the disk, though, if that's
what you want) and last update and other info:
<lst name="index">
<int name="numDocs">14591</int>
<int name="maxDoc">14598</int>
<int name="numTerms">128730</int>
<long name="version">1196962176380</long>
<bool name="optimized">false</bool>
<bool name="current">true</bool>
<bool name="hasDeletions">true</bool>
<str name="directory">.... s/solr/data/index</str>
<date name="lastModified">2009-11-19T16:44:45Z</date>
</lst>
See http://wiki.apache.org/solr/LukeRequestHandler
Peter
> -----Original Message-----
> From: Joel Nylund [mailto:jnylund@yahoo.com]
> Sent: Thursday, November 19, 2009 8:31 AM
> To: solr-user@lucene.apache.org
> Subject: getting total index size & last update date/time from query
>
> Hi,
>
> Looking for total number of documents in my index and the
> last updated date/time of the index.
>
> Is there a way to get this through the standard query q=?
>
> if not, what is the best way to get this info from solr.
>
> thanks
> Joel
>
>