Limit on number of schema fields?

2006-10-18 Thread Mike Baranczak
Is there any significant penalty for having a large number of fields  
in a Solr schema (like between 50 and 100)?


We have a site with several different types of searchable content,  
and each of those types will require several different fields (most  
of which are not shared). I figured that it'd be easier to have  
everything in one index, but I just want to make sure this won't  
cause any problems.


-MB



Re: Limit on number of schema fields?

2006-10-18 Thread Yonik Seeley

On 10/18/06, Mike Baranczak <[EMAIL PROTECTED]> wrote:

Is there any significant penalty for having a large number of fields
in a Solr schema (like between 50 and 100)?


We have had far larger numbers than that.

The only thing to watch out for is norms, which take up a byte per
document regardless of the number of documents containing the field.
You can omit norms if you don't need length normalization or
index-time boosting.

For fields that need norms (like full-text fields), you may be able to
share some of them between documents of different types.  Whether you
should worry about it really depends on the total number of documents
in the index

-Yonik