FoxTrot Search Forum
FoxTrot Search for macOS Forum

Home » Public Forums » FoxTrot Search User Forum » How to Index Files in Distinct Directory Paths Under a Single Index?
Re: How to Index Files in Distinct Directory Paths Under a Single Index? [message #1860 is a reply to message #1859] Sun, 29 September 2024 03:33 Go to previous messageGo to previous message
Atlas
Messages: 140
Registered: August 2009
Senior Member
Quote:
However, there is a hidden preference (configurable from Terminal.app) to exclude files or entire folders based on their name or path.
This prompted me to lookup the new feature in Foxtrot 8.  Please confirm if my understanding is correct:  Users can now choose which file/folder to index by applying regular expression filter on the full path?  For example, I can choose to index only files with {regex pattern A} or NOT index files with {regex pattern B}?  Why is this not news???  This makes Foxtrot indexes so much easier to use.  Currently, I've been applying fullpath regex on every new search just because I cannot perform the regex filter at index-time.  

Quoted from documentation:
"With version 8, you can also define custom regular expressions to specify some other files or folders to skip. You can either use a single regular expression (define SkipPathRegex as a string) or multiple ones (define SkipPathRegex as an array of strings). To avoid incorrect parsing when using the defaults command, it is suggested to quote the regular expression between single quotes ('), and to prepend any string with a "-string" argument. The regular expression is applied to the full path, and a file or folder is skipped if its path contains the regex; use a leading ^ and / or a trailing $ if the regex should be found at the beginning / ending of the path."

As a small comment, I can see why you might not want to apply regex at index-time, and instead encourage user to apply regex only at search-time, because you might be slowing down the index update process.  Currently, my index update process is already taking 8 - 10 seconds, and I wouldn't want the update process to approach 15 - 20 seconds.  Nonetheless, it's a good option to give users.  So kudos, if this feature is actually implemented.

[Updated on: Sun, 29 September 2024 03:35]

Report message to a moderator

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Can Foxtrot Display a PDF Document Outline Links?
Next Topic: [ANN] FoxTrot Search 8.0.4 b3 public beta available
Goto Forum:
  


Current Time: Thu Nov 07 17:07:36 GMT+1 2024