<p>Is there a known math formula that I can use to estimate the size of a new Lucene index? I know how many fields I want to have indexed, and the size of each field. And, I know how many items will be indexed. So, once these are processed by Lucene, how does it translate into bytes? </p>

[{'answer_id': 65700, 'author': 'Bob King', 'author_id': 6897, 'author_profile': 'https://Stackoverflow.com/users/6897', 'pm_score': 0, 'selected': False, 'text': "<p>I think it has to also do with the frequency of each term (i.e. an index of 10,000 copies of the sames terms should be much smaller than an index of 10,000 wholly unique terms).</p>\n\n<p>Also, there's probably a small dependency on whether you're using Term Vectors or not, and certainly whether you're storing fields or not. Can you provide more details? Can you analyze the term frequency of your source data?</p>\n"}, {'answer_id': 70549, 'author': 'Yuval F', 'author_id': 1702, 'author_profile': 'https://Stackoverflow.com/users/1702', 'pm_score': 3, 'selected': True, 'text': '<p>Here is the <a href="http://lucene.apache.org/core/3_6_1/fileformats.html" rel="nofollow noreferrer">lucene index format documentation</a>.\nThe major file is the compound index (.cfs file).\nIf you have term statistics, you can probably get an estimate for the .cfs file size,\nNote that this varies greatly based on the Analyzer you use, and on the field types you define.</p>\n'}, {'answer_id': 3893172, 'author': 'alchemical', 'author_id': 61639, 'author_profile': 'https://Stackoverflow.com/users/61639', 'pm_score': 1, 'selected': False, 'text': '<p>The index stores each "token" or text field etc., only once...so the size is dependent on the nature of the material being indexed.  Add to that whatever is being stored as well.  One good approach might be to take a sample and index it, and use that to extrapolate out for the complete source collection.  However, the ratio of index size to source size decreases over time as well, as the words are already there in the index, so you might want to make the sample a decent percentage of the original.</p>\n'}]
['https://Stackoverflow.com/questions/65406', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/543/']