On 5/10/2018 10:58 AM, Deepak Goel wrote:
I wonder what does Solr stores in the document for fields which are not
being used. And if the queries have a performance difference
https://lucene.apache.org/solr/guide/6_6/defining-fields.html
(A default value that will be added automatically to any document that does
not have a value in this field when it is indexed. If this property is not
specified, there is no default)

If a field is missing from a document, the Lucene index doesn't contain anything for that field.  That is why there is no storage disadvantage to having fields that are not being used.

Lucene does not have the concept of a schema.  That is part of Solr.  Solr uses the information in the schema to control its interaction with Lucene.  When there is a default value specified in the schema, the field is never missing from the document.

Thanks,
Shawn

Reply via email to