On Wednesday, March 1, 2023 at 6:53:55 PM UTC+1 Cade Roux wrote:
 

[image: AdvancedSearch.PNG]


I do have something to experiment with. !!!!!!!!! Backup first !!!!!!!!!!!

Edit: https://tiddlywiki.com/#%24%3A%2Fcore%2Fui%2FDefaultSearchResultList 
which contains the default-filter search. 
If you mess it up. Just delete the tiddler. The shadow (default) will take 
over again. 

It has 2 fields, which contains the 2 filters used to create the search 
results. 

Change them to:

`first-search-filter: [search:title<userInput>] :map[split[:Name=]nth[2]] 
+[sort[title]limit[250]]`

`second-search-filter: [search<userInput>]  :map[split[:Name=]nth[2]] 
+[sort[title]limit[250]]`

------ Explanation

first- ... searches for titles only. 
second- ... is a full text search

In your first post you wrote about the different tiddler titles. All the 
relevant titles seem to have 1 thing in common: `:Name=` .. So this can be 
used to extract the needed title. 

`:map..` applies the following filter to every input title and if they pass 
the filter write the result to the output

`..[split[:Name=].. ` will split the tiddler title into 2 elements using 
`:Name=` as the separator. 

..`nth[2]] ` uses the second element, which is eg: Mitral valve | Doppler

You wrote that STCode is redundant. .. Since the standard search does title 
deduplication they are ignored automatically. 

Hope that helps. If you have more system tiddler titles .. the mechanism 
should be similar. .. but the filter can become much more complex. ... 

-mario

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/dd3aeb6e-dd36-4e5b-a768-7e086246b0a6n%40googlegroups.com.

Reply via email to