Searchwikis plugin uses index (dataTiddler) to search external Tiddlywikis. It has two parts
- An indexer, to build an index of all tiddlers in external wiki
- A search tool to search indexes and display a link to external wiki
Then one central wiki can hosts many index tiddlers and lets to search several external wikis through index tiddlers.
- install $:/plugins/kookma/searchwikis into the host wiki
- drag and drop index and export tiddler to the external wiki
- use the ui and create the index tiddler of external wiki
- export it to the host wiki, or drag and drop to the host wiki
- open $:/AdvancedSearch in the host wiki
- goto
External wiki
tab and make search- results will be shown as links and one can click a link and open the external wiki with that result under focus
- Packaged plugin
- Drag and drop $:/plugins/kookma/searchwikis into your wiki
- Save and reload your wiki
- Client-Server installation (separate files)
- For Node.js (server version) download the searchwikis folder from source folder and paste in your Tiddlywiki plugins folder
- For local installation put the searchwikis folder into your local plugins folder under your wiki folder
- Code and demo
For complete tutorial, examples and use cases, see the demo page.
It is highly recommended to backup your data before trying any new plugin! Do it before installing Searchwikis
- Host wiki
- a Tiddlywiki has index tiddlers containing information of other Tiddlywikis. Host wiki is also called centeral wiki.
- Index
- a data tiddler contains the information of an external wiki in the form of
title
:title|caption|tag
- External wiki
- another Tiddlywiki for which, an index of information of all tiddlers (like title, tags, caption) is created and is desired to be searched from a host wiki
- Search index tiddler
- making search in an index (dataTiddler) contains information about an external wiki and show links to the tiddlers of that wiki meet the search criteria
Revision 1.0.0
For all changes see History
- Date: [3rd Mar 2020]
- [NEW] new index and search mechanism
- [NEW] search multiple indexes at the same time
- [NEW] added interface to $:/AdvancedSearch
- [NEW] added documentation and examples
- Mat
- bimlas
- David Gifford
- Olegh Bondarenko
- Ilya
- Mohammad
- Mark S
Updated the Toolmap entry with the new demo address.
Searchwikis plugin uses index (dataTiddler) to search multiple external Tiddlywikis. It has two parts
- An indexer, to build an index of all tiddlers in an external wiki
- A search tool to search indexes and display a link to a tiddler found in an external wiki
Then one master wiki can hosts many index tiddlers and lets to search several external wikis through index tiddlers.
- install $:/plugins/kookma/searchwikis into the host wiki
- drag and drop index and export tiddler to the external wiki
- use the ui and create the index tiddler of external wiki
- export it to the host wiki, or drag and drop to the host wiki
- open $:/AdvancedSearch in the host wiki
- goto
External wiki
tab and make search- results will be shown as links and one can click a link and open the external wiki with that result under focus
- Packaged plugin
- Drag and drop $:/plugins/kookma/searchwikis into your wiki
- Save and reload your wiki
- Client-Server installation (separate files)
- For Node.js (server version) download the searchwikis folder from source folder and paste in your Tiddlywiki plugins folder
- For local installation put the searchwikis folder into your local plugins folder under your wiki folder
- Code and demo
For complete tutorial, examples and use cases, see the demo page.
It is highly recommended to backup your data before trying any new plugin! Do it before installing Searchwikis
- Most browsers do not allow to open a local wiki (a wiki file on disk) from a webpage! This is a security reason
- Wikis are opened on Node.js even from local disk, are using http, or https and act as webpage
See Searchwikis Tutorial for details.
Revision 1.2.0
- Date: [5th Mar 2020]
- [FIXED] issue in generate links for tiddlers with colon (:) in their title
- [FIXED] the index and export tiddler has a user friendly title Index and Export
- [NEW] Index and Export supports exclude filter
- [NEW] Index summary to show tools for manupulation the indexes
- [NEW] Indexs can be excluded temporaririly from search
- [NEW] improved documentation and tutorial
For all changes see History
<$list filter="[tag[$:/tags/SearchWikis]sort[stw_wiki_title]]">
<$link to=<<currentTiddler>> ><$text text={{!!stw_wiki_title}}/></$link><br>
</$list>
Mohammad,You are so productive and prolific making things we all need, thanks so much.I have dropped this on my master bobexe wiki and indexed my tiddlywiki syntax and plugin repository of results.One issueHowever I clicked on one which went to this local address;
But the wiki opens with default tiddlers, not the CSS%20Tools tiddler, could the "##" have something to do with it?System tiddlersFor my plugin repository I would like my index to include the plugin and other system tiddlers and there fields, Is this possible?
Some minor customisations I did on my master wiki
- Tagging $:/plugins/kookma/searchwikis/ui/advancedsearch with $:/tags/SideBarSegment after $:/core/ui/SideBarSegments/search Works well!
- Since I expect my master to have multiple indexes I tagged the below tiddler with $:/tags/SideBar
<$list filter="[tag[$:/tags/SearchWikis]sort[stw_wiki_title]]">
<$link to=<<currentTiddler>> ><$text text={{!!stw_wiki_title}}/></$link><br>
</$list>However perhaps a minimal version of "Searchwikis Index Summary" aka $:/plugins/kookma/searchwikis/ui/index-summary with a caption field would be better in the sidebar.
Mohammad,You are so productive and prolific making things we all need, thanks so much.
I have dropped this on my master bobexe wiki and indexed my tiddlywiki syntax and plugin repository of results.One issueHowever I clicked on one which went to this local address;But the wiki opens with default tiddlers, not the CSS%20Tools tiddler, could the "##" have something to do with it?System tiddlersFor my plugin repository I would like my index to include the plugin and other system tiddlers and there fields, Is this possible?
Revision 1.3.0
- Date: [5th Mar 2020]
- [FIXED] issue in generate links for tiddlers with hash (#) in their title
- [FIXED] documentation to add Searchwikis as sidebar segment
For all changes see History
Searchwikis plugin uses index (dataTiddler) to search multiple external Tiddlywikis. It has two parts
- An indexer, to build an index of all tiddlers in an external wiki
- A search tool to search indexes and display a link to a tiddler found in an external wiki
Then one master wiki can hosts many index tiddlers and lets to search several external wikis through index tiddlers.
- install $:/plugins/kookma/searchwikis into the host wiki
- drag and drop index and export tiddler to the external wiki
- use the ui and create the index tiddler of external wiki
- export it to the host wiki, or drag and drop to the host wiki
- open $:/AdvancedSearch in the host wiki
- goto
External wiki
tab and make search- results will be shown as links and one can click a link and open the external wiki with that result under focus
- Packaged plugin
- Drag and drop $:/plugins/kookma/searchwikis into your wiki
- Save and reload your wiki
- Client-Server installation (separate files)
- For Node.js (server version) download the searchwikis folder from source folder and paste in your Tiddlywiki plugins folder
- For local installation put the searchwikis folder into your local plugins folder under your wiki folder
- Code and demo
For complete tutorial, examples and use cases, see the demo page.
Mohammad,The "##" is no longer occurring. Thank youThe "exclude filter" of [is[system]prefix[$:/plugins]] works nicely to include the installed plugins, but perhaps I need to go further to index the plugins shadow tiddlers?I am sorry I did not review and feedback earlier in the history of this solution. Once again "love your work".I also learned something by accident, I had not provided the wiki url correctly to the index and Export tool, In some ways this was because of my "special" setup.
- http://192.168.1.81/IndexWikis/TW5References/index.html finaly worked
But the thing I learned its trivial to change the stw_wiki_url: field in the "master" wiki where I loaded the index. This highlighted the ease of changing this as needed to point not to a local wiki but one with a different address on the internet, one which may be a copy of the local wiki.I do not want to ask for new features because this is already a 100% solution but I had some ideas you could consider in the future. I can do some of it it myself and share if you want.
- Include in the Index and Export tiddler a button that appears in Page Control buttons that on clicking exports the local index
This would allow a Wiki to freely publish an index for import elsewhere if desired (eg tiddlywiki.com)- An option to the above for non static websites could also make the button first generate a fresh index then export the file
This allows a wiki owners who makes changes worthy of a fresh reindex to click and re-export whenever needed- It may often be convenient to drag and drop the index from the source wiki rather than go through the export import process
I wonder if a functional button such as described by me above could also be made draggable to drop the index tiddler on the master wiki?
Be it an option or standard behaviour the truth is I would be keen to see the possibility of search results listed together from all indexes
- However this may make indicating the source difficult, perhaps the index file could have an icon which would prefix each result
- Another alternative may be being able to close the search results for a given indexed wiki, so for example I may only review the results for my plugin wiki etc...
I always dreamed for a solution like this, and it has become a reality in your hands. The reason is I have a multitude of wikis, some with single purposes reflected in the name, some with multiple purposes now captured by the indexing and search you have developed. Hopefully I will no longer loose stuff.
I believe Bob may have a way to search across its wikis, perhaps Jed may be able to provide an add-in to your tool so the search can extend not only to wikis which have used the index and export but those in the bob "network" automatically. This would make bob a premier location for one to "index all ones tiddlywiki resources" including those of other publishes eg tiddlywiki.com
In closing I have developed a process for "Registering" wikis in a central database, and some helpful ways of keeping them uptodate, given the structure of this search solution they would integrate quite well with or without the search index so I will provide another reply in relation to this, all of which could be combined with your solution in the future. Perhaps a new thread is advisable so keep an eye out for it.