Pin block boundaries
A pin block is a set of adjacent pinned positions with no unpinned position between them. An unpinned position splits the pins into separate blocks. For example, pins at positions 1, 2, 3, 6, 7, and 8 form two pin blocks: one covering positions 1 to 3 and one covering positions 6 to 8.- If you unpin an item inside a block, the remaining items stay together and the block’s start position doesn’t change.
- If you add a pin between two pins in a block, it joins that block.
- A rule can contain several pin blocks.
Enable pin blocks
To enable pin blocks for a rule, turn on Shift pins to close gaps in the Visual Editor.1
Open the Visual Editor
- Go to the Algolia dashboard and select your Algolia .
- On the left sidebar, select Search.
- Select your Algolia .
- Select Rules from the left sidebar.
- Select Create your first Rule or New rule.
- Click Visual Editor.
2
Turn on pin blocks
Under Consequences, click Pin items, then turn on Shift pins to close gaps.
3
Pin your items
Pin items at adjacent positions to create a pin block.
The Visual Editor labels each block so you can see which items stay together.
4
Publish the rule
Click Apply, then Review and Publish your rule.