On 2/4/2014 8:00 PM, Mike L. wrote:
> I'm just wondering here if there is any defined limit to how many fields can 
> be created within a schema? I'm sure the configuration maintenance of a 
> schema like this would be a nightmare, but would like to know if its at all 
> possible in the first place before It may be attempted.

There are no hard limits on the number of fields, whether they are
dynamically defined or not. Several thousand fields should be no
problem.  If you have enough system resources and you don't run into an
unlikely bug, there's no reason it won't work.  As you've already been
told, there are potential performance concerns.  Depending on the exact
nature of your queries, you might need to increase maxBooleanClauses.

The only hard limitation that Lucene really has (and by extension, Solr
also has that limitation) is that a single index cannot have more than
about two billion documents in it - the inherent limitation on a Java
"int" type.  Solr can use indexes larger than this through sharding.

See the very end of this page:

https://lucene.apache.org/core/4_6_0/core/org/apache/lucene/codecs/lucene46/package-summary.html#Limitations

Thanks,
Shawn

Reply via email to