Try:
<table>
<$list filter="[[:/_dictionary/abbreviation]indexes[]]" >
<$list filter="[[:/_dictionary/abbreviation]getindex
<currentTiddler>search:title{:/_state/customSearch}]" variable="value">
<tr>
<td><<currentTiddler>></td>
<td><$view tiddler=":/_dictionary/abbreviation" index=<
<currentTiddler>>/></td>
<td><$view tiddler=":/_dictionary/pronunciation" index=<
<currentTiddler>>/></td>
</tr>
</$list>
</$list>
</table>
You'll need to put the $ back in (I get frustrated with disappearing
tiddlers)
This uses nested lists. The outer one goes through all the terms in the
dictionary. The inner one finds the corresponding values and compares them
to the search term.
Probably not efficient if you have a huge database. But since there isn't a
inverse index search filter, this will have to do ;-)
-- Mark
On Saturday, January 5, 2019 at 3:46:07 PM UTC-8, Magnus wrote:
>
> I have a custom search that let me search a data tiddler for indexes, but
> can I also search for the corresponding value? In my
> abbreviation-x-tiddler-dictionary I would like to be able to search for the
> name or the abbreviation, I guess I could create one more data tiddler
> using the same content but revers the indexes for the values but it seems
> redundant
>
> <table>
> <$list filter="[[$:/_dictionary/abbreviation]]
> +[indexes[]search{$:/_state/customSearch}]">
> <tr>
> <td><<currentTiddler>></td>
> <td><$view tiddler="$:/_dictionary/abbreviation"
> index=<<currentTiddler>>/></td>
> <td><$view tiddler="$:/_dictionary/pronunciation"
> index=<<currentTiddler>>/></td>
> </tr>
> </$list>
> </table>
>
>
>
> http://magnus.playground.tiddlyspot.com/#%24%3A%2F_template%2FcustomSearch:%24%3A%2F_template%2FcustomSearch%20%24%3A%2F_dictionary%2Fabbreviation
>
--
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 post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tiddlywiki/590acb8d-e103-45a2-a428-d78fb66389fe%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.