Hi, 
Widgets are no programming language. ... The ` <$list ` widget is no loop. 
... It's more like a template to create text output ... 

*Filters produce lists* so `[tag[dict_entry]] ` will return a list of 
tiddler titles, that are tagged  ` dict_entry `  ... Tiddler titles are 
unique.

So `[tag[dict_entry]match[keyword]]`  will only return 1 tiddler name: 
keyword, since there can't be a second tiddler with the same name. ... So 
this part of your "code" doesn't make too much sense. 

` [tag[dict_entry]get[db_hit]match[keyword] ` would make sense, if db_hit 
is a field of a tiddler. ... BUT that's probably not what you want. 

That's why I use the tiddler text as the field that contains the keyword.
Let's say we have 3 tiddlers

```
title: a
text: keyword
db_hit: aa

title: b 
text: keyword
db_hit: bb

title: c
text: no keyword
db_hit: cc
```

So `[tag[dict-entry]] :filter[get[text]match[keyword]]` will return a list: 
` a b ` . So we have a list of tiddlers that match the keyword. 
Now we need to read the db_hit value

The following wikitext is probably all you need, as far as I can interpret 
your "code".

```
<$set name="myList" filter="[tag[dict-entry]] 
:filter[get[text]match[keyword]] ">
<$set name=hitList filter="[enlist<myList>get[db_hit]addsuffix[, ]]">
Entries matching keyword: <<hitList>>
</$set></$set>
```

In TW filters are the powerful features. ... Widgets are there to create 
text output with templates. Filters have match, then, else and other fancy 
stuff. 

I'm not sure, if that's what you really want. .. 
*You should describe your data structure first similar to what I did with 
my 3 example tiddlers. *
*From your code we don't see where the `*db_hit*` value comes from.*
*We don't see, where the *`keyword ` *is defined*

Whith that info missing it's hard to know what you really need. 

See the docs: 
https://tiddlywiki.com/#tag%20Operator:%5B%5Btag%20Operator%5D%5D%20%5B%5Benlist%20Operator%5D%5D%20%5B%5Bget%20Operator%5D%5D%20%5B%5BFilter%20Expression%5D%5D%20%5B%5Bfilter%20Operator%5D%5D%20%5B%5BFilter%20Operators%5D%5D

I hope that helps.
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/3a369def-7956-4fe9-a57a-b1e4c1fce230n%40googlegroups.com.

Reply via email to