Search

151 views
Skip to first unread message

Alan Finger

unread,
Jan 14, 2015, 11:33:18 AM1/14/15
to tiddl...@googlegroups.com
Hi from a Newbie,

I'm trying to understand how search works and how to harness it to my needs: It appears that when entering a multi-word string, search returns all tiddlers containing the words in any order. What I want it to see only the results with that exact string. This will be used by others so I can't ask them to enter complicated filter expressions.

Suggestions?

Thanks in advance,
Alan

Tobias Beer

unread,
Jan 14, 2015, 12:53:30 PM1/14/15
to tiddl...@googlegroups.com
Not sure how much it really helps...


Best wishes, Tobias.

Astrid Elocson

unread,
Jan 14, 2015, 2:53:34 PM1/14/15
to tiddl...@googlegroups.com
Hi Alan,

Yes, I sometimes find that a bit frustrating, too.

The underlying search function in the TiddlyWiki code has an option to treat the entire search term literally. However, the search filter operator (as used by the sidebar search system) provides no way to set this option. In the absence of this option, the search function splits the search term into several pieces, using a sequence of one or more spaces as the separator. Any tiddler that contains any of the pieces (either as a whole word or not) is then considered to be a match.

– æ

Alan Finger

unread,
Jan 16, 2015, 4:53:20 PM1/16/15
to tiddl...@googlegroups.com
Hi Tobias,

Thanks for the assist. It's been a great introduction to TiddlyWiki programming as well!. One problem: Activating Advanced Search breaks it -- returning all regular tiddlers regardless of search term.

Something to work on over the weekend.

Regards,
Alan

Tobias Beer

unread,
Jan 16, 2015, 5:36:41 PM1/16/15
to tiddl...@googlegroups.com
Hi Alan,
 
One problem: Activating Advanced Search breaks it 
returning all regular tiddlers regardless of search term.

I am not sure what breaks what.
What precisely did you try?
What failed, where and how?

Best wishes, Tobias.

Alan Finger

unread,
Jan 16, 2015, 10:38:22 PM1/16/15
to tiddl...@googlegroups.com
Hi Tobias,

To reproduce:
1. Create an Empty wiki and add your search tiddlers
2. Create some test tiddlers: at least two containing a two word search target and some containing one or neither of the words.
3. Do a standard search from the sidebar and verify exact search is operating correctly.
4. Click the button for exact search and note that the Exact list contains all standard tiddlers.
5. Type the search in the sidebar and it displays correctly.

I think the problem lies with the fact that they use different search term sources but ExactSearch gets invoked for both.

Thanks for the help!
Alan

Tobias Beer

unread,
Jan 17, 2015, 4:08:35 AM1/17/15
to tiddl...@googlegroups.com
Hi Alan,

Ah, now I see where the confusion is coming from.

I've added an Installation section...

You were missing this tiddler...

Best wishes, Tobias.

Alan Finger

unread,
Jan 17, 2015, 9:32:39 AM1/17/15
to tiddl...@googlegroups.com
Hi Tobias,

Thanks for the quick response. I did have the regex tiddler installed (guess I forgot to mention). I just tried your installation and am still seeing the same problem. Is there some way I can send you my test wiki?

Alan

Tobias Beer

unread,
Jan 17, 2015, 11:02:24 AM1/17/15
to tiddl...@googlegroups.com
Ok for you to attach it to a post here? Otherwise it's beertobias at that monster of a search engine's email service.

Best wishes, Tobias.

Alan Finger

unread,
Jan 17, 2015, 5:41:55 PM1/17/15
to tiddl...@googlegroups.com
Hi Tobias,

The file is attached. The test phrase is "serial number"

Alan
empty2.htm

Tobias Beer

unread,
Jan 18, 2015, 9:29:43 AM1/18/15
to tiddl...@googlegroups.com
Hi Alan,

I don't think I am seeing any problem.
Be sure to use the latest version from tb5, though.
Best wishes, Tobias.

Alan Finger

unread,
Jan 20, 2015, 11:07:03 PM1/20/15
to tiddl...@googlegroups.com
Hi Tobias,

Thanks, I think I got it working in my wiki.

Alan

--
You received this message because you are subscribed to a topic in the Google Groups "TiddlyWiki" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/tiddlywiki/tHsXzzZ61NU/unsubscribe.
To unsubscribe from this group and all its topics, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages