Hi Mario,
Thank you for your answer.
search/query!!list gathers a number of (different) search terms. (e.g. term-1 other-15 other-1 category-5)
The search terms are used to make a list of tiddlers that have at least all those terms in their list field.
It can be combined with searches for other things like text (in attached notes) it uses the search/query!!text field for this. It is also possible to exclude 1 or 2 terms from the search . And a number of other fields like dates (to select a period) are also part of the "final search results". All different search terms are added to the tiddler "search/query".
I have a "content search" tiddler that makes it easy to add the "terms" (they are like tags in a list field). It is possible to add many tags/terms.Below the input section for the search terms is a list with the search results.
Your solution works for 1 search term. How could I expand it to search for multiple terms ?
Regards, Trend.
From: tiddl...@googlegroups.com <tiddl...@googlegroups.com> on behalf of PMario <pmar...@gmail.com>
Sent: Sunday, January 26, 2020 5:49 PM
To: TiddlyWiki <tiddl...@googlegroups.com>
Subject: [tw5] Re: search operator word with dash
--Hi,
Why is your search term stored in a list like: search/query!!list ??
-m
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 tiddl...@googlegroups.com.
<$list filter="[tag[my-tag]contains:mylist{search/query!!list}]">
</$list>.To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+unsubscribe@googlegroups.com.
Hello,
I'm searching for "term-1" with this:
<$list filter="[tag[my-tag]search:list{search/query!!list}]"> </$list>.
In the list field of tiddler "search/query" is my search term "term-1"
The resulting list with tiddlers also includes "term-10" (or "term-11" etc.).
How do I get the list to only mention tiddlers that have "term-1" in their list field ?
Regards, Trend.
--
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 tiddlywiki+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/DBBPR03MB51427A34D5E945168A773ACEF8080%40DBBPR03MB5142.eurprd03.prod.outlook.com.
<$list filter="[list[search/query!!list]]" variable="listitem">
<$list filter="[tag[my-tag]contains:mylist<listitem>]">
</$list>
</$list>.@ Mark S
This seems like a nice step in the right direction.
I see that the filter is searching for each search term and appending all results for each term to a list.
Would it be possible to select only the tiddlers that are mentioned twice (or as much as there are search terms) ? I tried but didn’t succeed.
@Mohammad
Very clever thinking. Nice trick! And thanks for the test setup.
Yes I do want the exact search term. But the problem is when using multiple search terms.
When using your setup. If I search for term-1 AND term-14 I want the result to be tiddler C (having both term-1 AND term-14).
I don’t want the result to be the tiddlers that have term-1 OR term-14 OR both.
@all helping out
//I will take a look at the list field again and see if I can change it to something else. // Everybody happy!