回答
集合是SolrCloud集群中的完整逻辑索引。例如,您可能有三种不同的集合,分别称为用户,书籍和人物。
在逻辑层面上,整个索引被称为集合。这可能分布在集群中的许多节点上。
碎片是整个集合的一部分。即集合由一个或多个碎片组成。
何时使用收集?
Generally, users will create multiple Collections to separate logical units of data that will not be intermingled, similar to a database in the relational world. Collections are generally isolated from one another and do not typically communicate with each other. Also each Collections will each have their own unique schema.xml to define the types for their index.
当使用碎片?
If you feel your index is too big to be stored on one node . it can be divided into different shards and can be stored on different nodes on a cluster.
了解更多关于在这里:https://thinkbiganalytics.com/solrcloud-terminology/
我们可以在一个分片中创建不同的模式 –
没有。相同集合的分片将共享相同的模式。但是Collections将分别拥有自己独特的schema.xml来为其索引定义类型。 – root545
- 1. Bigquery Shard vs Bigquery分区
- 2. 何时使用Set与Collection?
- 3. Edge Collection vs. Graph
- 4. LINQ Ring:Any()vs Contains()for Large Collection
- 5. Backbone collection使用RequireJS
- 6. Docker with MongoDB(3.4)Replica Shard
- 7. 何时使用SQLITE_TRANSIENT vs SQLITE_STATIC?
- 8. 何时使用add_action vs add_filter?
- 9. 何时使用ReactiveDict vs ReactiveVar
- 10. 何时使用ServiceTracker vs ServiceReference
- 11. HDFS vs GridFS:何时使用?
- 12. 何时使用VirtualAlloc Vs新?
- 13. 何时使用AlertDialog.Builder.setTitle()vs Dialog.setTitle()?
- 14. Knockout.js observableArray vs Backbone.js Collection - 有什么区别?
- 15. WPF VS Collection编辑器教程?
- 16. 为什么Collection在Collection更改时未被调用?
- 17. 使用Collection Magento获取ProductName
- 18. 使用SubSonic Collection的位置
- 19. 使用Collection排序ArrayList
- 20. ElasticSearc Shard在搜索中使用的副本
- 21. 不能使用“使用Illuminate \ Support \ Collection;”
- 22. Hibernate查询DetachedCriteria VS bulkUpdate SQL使用Collection with with“in”用法问题
- 23. 何时使用管道vs何时使用共享内存
- 24. 如何在Rails中使用render @collection时使用不同名称的文件?
- 25. 何时开发使用Powershell vs C#?
- 26. 何时适合使用df.value_counts()vs df.groupby('...')。count()?
- 27. 何时使用助手vs模型
- 28. Android:何时使用Dialog vs. Activity
- 29. 何时在ExecutorCompletionService中使用poll()vs take()
- 30. 何时使用=默认vs =删除
重复https://stackoverflow.com/questions/35298435/understing-some-concepts-of-apache-solr/35299919#35299919的 – MatsLindh
它不重复。在你的链接中,这些只是意味着我更专注于收集vs碎片,主要是在版本4中> –
它们不是同一个概念。一个集合是_shards_的集合,它代表你的整个索引。如果您想要将集合扩展到更多服务器,请创建/分割新分片并将其移动。再平衡API可能对未来有所帮助。 – MatsLindh