Multiple search in field

Hi,

If I have a field named ‘key’ which contains one or all of ‘A’, ‘B’, ‘C’

How do I select tiddlers which have both ‘A’ & ‘C’ in the field?

(The purpose is to select for key words in the text so I don’t want to overpopulate the wiki with tags)

So far I’ve got

<$list filter=[key[A]]>

</$list>

or

<<list-links [search:key[A]]>>

I’ve had a look round but can’t find how to do it for multiple terms.

Regards
Jon

I’d probably go with…

[[has[key]search:key[A]search:key[C]]

Thanks, but I’ve tried:

<$list filter= [[has[key]search:key[A]search:key[C]]>>

</$list>

and

<<list-links [[has[key]search:key[A]search:key[C]]>>

and neither gives an output.

Works on tiddlywiki.com

I called the field x

Ah, this seems to do it

<<list-links "[search:key[A]search:key[C]]">>

sorry, didn’t see your post before mine - I’ll try that thanks.

1 Like

This is not valid filter syntax, but has an opening bracket [ too many at the beginning. Therefore, @Jon’s initial tries were unsuccessful.

Have a nice day
Yaisog

That works now - thanks both.