If never used, they take up zero space in the index.
If they were used but are no longed used, they're still there, but any new
or replaced documents will not take up any space for the unused fields
(subject to the facet that deleted fields still exist until a merge/optimize
compresses them away.)
But, yes, should should try to keep your schema clean - but if the fields
are still populated in some of the documents, you might eventually find some
need to reference them.
You should keep your schema and config files in a version control system so
that you can always go back or view differences.
-- Jack Krupansky
-----Original Message-----
From: Ali, Saqib
Sent: Wednesday, July 03, 2013 11:55 AM
To: solr-user@lucene.apache.org
Subject: unused fields in Solr schema.xml increase the index size
Hello all,
Do unused fields in Solr Schem.xml increase the size of the index files?
Should we be cleaning up those fields?
Thanks.
Saqib