please add a rename feature for the index name in the "Search Scope" view.
when you have several folders with the same name, you have no idea what you search.
maybe as an easy workaround show the absolute path as hint when you hoover the mouse over the index
see also: https://sourceforge.net/p/docfetcher/discussion/702424/thread/18496765/
I have added this feature to the source code. It, however, invalidates the indexes (due to the fact that the display name is now a separate field from the path name). It seems to be working well, but it's still undergoing testing.
Hello,I'm very interested with this new functionnality.
Can you send me the updated exe file for windows ?
Have you tried using transient fields?
No, I haven't used transient fields as I need the display name as serializable. I don't want to overhaul the serialization code or have the display name stored elsewhere (in .indexes.txt - I added it there, too, but I don't really know what you use that file for :-( ). From what I understand, transient fields are not serialized and I would keep the display name against the index.
I see. Then I suggest storing the display name in a new text file in the subfolders of the indexes folder. Something like "name.txt" or "display-name.txt" will be just fine. That way, you can optionally store a display name for each index without breaking serialization.
Actually, using XML instead of a plain text file might be a good idea, if you want to add more information in the future. In case you want to use XML, feel free to add a dependency to the JDOM library under the lib folder.
The DocFetcher daemon uses this file to tell DocFetcher which indexes need to be updated on startup. So better not touch this.
Btw, I can provide you with write access to the Git repository if you want.
Last edit: Nam-Quang Tran 2015-11-02
Thanks, I looked at this solution, but not being familiar with all the interaction between the modules, I preferred to take the "easy" route and minimize the changes to the code. In my opinion, there should be a XML that stores the configuration, indexes paths, last modified date, display name of the index, whether the index was ticked or not in the UI (at the last run), if the folder is on a removable drive (another thing I've dealt with, as I would like to be able DocFetcher to index and search external disks, like CDs, SD, etc). But this would be a major change in the code and it may not be as beneficial.
Thanks for the offer to provide write access to the Git repository: I'm not very familiar with Git and, as you, I don't have much time :-(
I've implemented setting the index name and pushed it to the repo. My first implementation added the index name to the index config (IndexingConfig object, for the insiders). This broke backwards compatibility because existing 1.1.17 indexes could not be deserialized anymore
Then I found this topic :). I now save the file to a separate file (index-name.txt) which is saved to the index folder. This file is read after deserializing the index and written after serializing the object.
Index name can be set when creating/rebuilding the index, or by using the context menu in de Index panel (left-bottom). It isn't released yet, but you could build it yourself (or send me an e-mail, I can provide you the Windows executable).
No need to send around DocFetcher builds by e-mail. I've uploaded a preview version of the next release, which includes the new index renaming feature:
http://docfetcher.sf.net/docfetcher-1.1.17-portable.zip
Any chance of getting a non-portable version with this update soon?
At the moment I have my hands full with other things, so... maybe in the next 1-2 months?
Fixed in DocFetcher 1.1.18.