Add and organize content¶
This guide shows the normal path for registering directories and deciding when to use spaces or collections.
Recommended path¶
Start with one space and one collection:
This registers the directory and runs the initial indexing pass.
Search it:
Add more collections¶
A collection is one registered directory. Add another collection when you want another directory searchable in the same space:
Collections in the same space can be searched together. Use --collection only when you want to narrow the search.
Create another space¶
A space is a separate namespace. Create another space when results should not mix:
Set a default when you want commands to use that space without passing --space:
Check the active space:
Register now, index later¶
Use --no-index when you want to register a collection first and run indexing later:
Verify¶
Check the collection:
List indexed files:
Next steps¶
- Keep changed files searchable with Keep indexes fresh.
- Learn the mental model in Spaces and collections.
- See exact commands in Content management.