Menu

#87 Command line option --create-index

open
nobody
None
2
2022-02-13
2014-01-02
No

In case you have a large number of files (e.g. .pst archives) or folders to index, it would be nice to be able to script initial indexing in the same way you are now able to script the update.
Thanks for this very useful piece of software anyway :-)

Discussion

  • Nam-Quang Tran

    Nam-Quang Tran - 2014-01-02

    Hi,

    I agree that this would be useful. Make take some time though as DocFetcher is currently inactive.

    Best regards
    q:-) <= Quang

     
  • John Fraser

    John Fraser - 2015-06-10

    D'oh, just found this after posting a query in General Discussion, I agree this would be a very useful feature for rolling the product out to many users where the requirement is to have local indexes built.

    John

     
    👍
    1
  • Nam-Quang Tran

    Nam-Quang Tran - 2015-06-11

    @ John: Due to lack of time, there won't be much more than bugfixes for DocFetcher in the foreseeable future.

     
  • Claudio Gomes

    Claudio Gomes - 2022-02-13

    @John I too have the need to create many different indexes, each with many files and even more excluded files.

    DocFetcherPro has support for this.

    Alternatively, if you can build the source, then you can change the field:
    private static final List<PatternAction> defaultPatternActions
    to change the default list of pattern actions. Then the work of configuring each index is minimal.

    For example:

    private static final List<PatternAction> defaultPatternActions = Arrays.asList(new PatternAction[] { 
            new PatternAction(".*/\\.git/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
            new PatternAction(".*/\\.sync/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
                new PatternAction(".*/\\.svn/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
                new PatternAction(".*/\\.vs/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
                new PatternAction(".*/\\.idea/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
                new PatternAction(".*/__MACOSX/.*", PatternAction.MatchTarget.PATH,     PatternAction.MatchAction.EXCLUDE),
                new PatternAction(".*\\.class", PatternAction.MatchTarget.FILENAME, PatternAction.MatchAction.EXCLUDE), 
                new PatternAction(".*\\.pyc", PatternAction.MatchTarget.FILENAME, PatternAction.MatchAction.EXCLUDE), 
                ...
               });
    
     

Log in to post a comment.

MongoDB Logo MongoDB