Friday, February 26, 2016

Bucket

What Is a Bucket?
•A bucket allows you to transform an item into a repository that stores other items that are not displayed in the content tree
•Potential to store millions of items, which a tree structure would not support

•Friendly search UI for authors to manage a large number of items.
Advantages of Buckets
•Support for potentially millions of items that would not suit a tree structure and slow down the UI –for example, products, repositories and orders
•Automatically organizes content items into a folder structure that improves database retrieval performance
•Queries run against an index, ensuring high performance
•Find what you want quickly by using free text search, facets and search filters.

Should I bucket?
Bucket if:
•You do not care about the structure of the data stored in the bucket
•You anticipate a large volume of items
•You would benefit from searching for items rather than locating them in the tree.


How turn a specific template into bucket:
  1. Using the content editor navigate to specific template standard value which you want to make bucket.
  2. Click the Configure tab->Buckets->Bucket to turn it into a bucket.

  3. Navigate to the item which is created from this template.
Confirm that the item is now a bucket. The active commands in the Buckets group should be Revert and Sync.



So above we just create a bucket item, & all of his children must be bucketable if we want to store in the bucket.
So we need to make children item template bucketable. Here below are the steps:
  1. Using content editor navigate to the one of children item whose template we want to make bucketable. 
  2. Make all these type of item bucketable by enabling the Standard values check box in the Bucketable settings group of the Configure tab:



    Note: Because you have made a change to the bucketable settings, you now need to sync the bucket.
  3. Select the bucket (that is the parent item) and synchronize it by clicking the Sync button in the Buckets group.
Confirm that all children (except some items, which is based on the different template) are hidden and that search and faceting work as expected.

Buckets:
Any item can become a bucket. The children under the buckets can be a mix of both bucketable and non-bucketable items, however the two types will not behave in the same way. Therefore, to make a consistent experience for your authors, consider only having bucketable items under a bucket.

View the Normally Hidden Bucketable Folder Structure
To view the folder structure in the content tree of bucketable items under a bucket, click View->Buckets option.
Maintaining Structure with Bucketable Items:
To preserve the parent/child relationship of items stored in a bucket, navigate to the Standard Values of the template of the item that will act as the parent
(for example, items based on the News Article template will be the parent to items based on the Comment template). Ensure Standard fields checkbox is checked in View group and enable the Lock Child Relationship check box from Item bucket section from right.