简体   繁体   English

Solr / Lucene多值字段-值的最大数量?

[英]Solr/Lucene Multivalued Fields - maximum number of values?

Is there an actual or practical limit to the number of values that can be placed in a multivalued field in Solr/Lucene? Solr / Lucene的多值字段中可放置的值数是否有实际或实际的限制?

For example, if I want to have an indexed field with 5000 numeric values, will this cause problems? 例如,如果我想要一个带有5000个数字值的索引字段,这会引起问题吗?

Thanks. 谢谢。

You question requires bit more context. 您的问题需要更多上下文。 It depends on how the field will be used.. Apparently going by the amount of data in the field, features like faceting wont make much sense.. 这取决于字段的使用方式。显然,按照字段中的数据量来看,诸如刻面之类的功能并没有多大意义。

Performance wise, it might be worth noting, 在性能方面,可能值得注意的是,

  • Document Cache will take up relatively more memory. 文档缓存将占用相对更多的内存。
  • if it is part of copyField you have to careful about potential index size increase. 如果它是copyField的一部分,则必须注意潜在的索引大小增加。

There is no definitive answer, the best is to create test data set & benchmark it with what you intend to do & see the behavior. 没有明确的答案,最好的方法是创建测试数据集,并根据您的意图对其进行基准测试并查看其行为。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM