Ignoring files from indexing with Super Brain
Skip sensitive files from indexing in Elephas Super Brain
In each instance of Super Brain, users can skip certain types of files and folders from being indexed. This powerful feature is particularly useful for excluding sensitive files, temporary files, or unwanted folders that you do not want to appear in your Super Brain.
How to Ignore Files and Folders in Super Brain
- To exclude a folder or file from indexing, simply click on the “Add” button and select the specific folder or file you wish to disregard.


Advanced Ignore Patterns for File Management
Super Brain supports advanced ignore patterns, allowing for flexible and powerful exclusions. Below are the different types of patterns you can use to optimize your file management, along with practical examples to illustrate their use:
1. File Extensions (*.ext):
・ Description: Patterns that start with *. are used to match specific file extensions.
・ Example: *.jpg would match any file that ends with .jpg.
・ Usage: If you want to ignore all JPEG image files in your project, you would add *.jpg to your ignore list. This means that files like image1.jpg, photo.jpeg, and landscape.jpg will all be excluded from indexing.

2. Directory Wildcards (bank/)*:
· Description: Patterns that end with /* are used to match any file within a specific directory.
· Example: bank/* would match any file located within the bank directory.
· Usage: If you have a build folder that contains temporary files generated during the build process (e.g., bank/output.txt, bank/temp.log), adding bank/* to your ignore list will ensure that all files inside this directory are ignored during indexing.

3. Recursive Wildcards (**/personal):
・ Description: Patterns containing **/ are used to match files in any subdirectory.
・ Example: **/personal would match any file named personal found in any subdirectory.
・ Usage: If you have multiple directories and subdirectories that might contain a folder named cache (like src/personal, assets/personal, etc.), adding **/personal to your ignore list will exclude all instances of cache folders and their contents from being indexed.

4. Direct Path Matches:
・ Description: Any other pattern is treated as a direct string match against the path.
・ Example: temp would match any path that contains the string temp.
・ Usage: If you want to ignore any files or folders that include the word temp in their names, such as tempData.txt, myTempFolder, or backup_temp, you would add temp to your ignore list. This will ensure that all these items are omitted from indexing.
Adding Multiple Paths
You can add multiple ignore patterns by entering each one on a new line in the text input. For example:

By specifying the names of files or folders to be excluded, these items will not be indexed and will consistently remain omitted from the UI as well, while the other contents will continue to be indexed as normal.

Consistent Exclusion for a Cleaner Workspace
By specifying the names of files or folders to be excluded, these items will not be indexed and will consistently remain omitted from the user interface. Meanwhile, all other contents will continue to be indexed as normal, ensuring that your workspace remains organized and free of unwanted clutter.
With this powerful ignore file feature, you can tailor your indexing experience in Super Brain to suit your specific needs. This not only enhances your productivity but also helps maintain data privacy and security.
Conclusion
Utilizing the ignore file feature in Super Brain allows you to efficiently manage your files and folders, ensuring that only the relevant data is indexed. Whether you're dealing with sensitive documents, temporary files, or entire directories, this feature provides the flexibility you need for effective file management.