lucene-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chris Bamford <ch...@bammers.net>
Subject Re: Size of Document
Date Wed, 04 Jul 2018 13:13:22 GMT
Hello Adrien,


> 
> There is no way to compute the byte size of a document.

I feared that!

> Also note that the
> relationship between the size of a document and how much space it will use
> in the Lucene index is quite complex.
> 
I understand. I was wondering if there was maybe some sneaky way of peeking inside the IndexWriter
before and after a write to compare buffer sizes?

Thanks 
Chris

> Le mer. 4 juil. 2018 à 11:26, Chris and Helen Bamford <chris@bammers.net> a
> écrit :
> 
>> Hi there,
>> 
>> How can I calculate the total size of a Lucene Document that I'm about
>> to write to an index so I know how many bytes I am writing please?  I
>> need it for some external metrics collection.
>> 
>> Thanks
>> 
>> - Chris
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
>> For additional commands, e-mail: java-user-help@lucene.apache.org
>> 
>> 


---------------------------------------------------------------------
To unsubscribe, e-mail: java-user-unsubscribe@lucene.apache.org
For additional commands, e-mail: java-user-help@lucene.apache.org


Mime
View raw message