• Do not register here on develop.twiki.org, login with your twiki.org account.
• Use View topic Item7848 for generic doc work for TWiki-6.1.1. Use View topic Item7851 for doc work on extensions that are not part of a release. More... Close
• Anything you create or change in standard webs (Main, TWiki, Sandbox etc) will be automatically reverted on every SVN update.
Does this site look broken?. Use the LitterTray web for test cases.

Item4580: query SEARCH searches over everything except the text?

Item Form Data

AppliesTo: Component: Priority: CurrentState: WaitingFor: TargetRelease ReleasedIn
Engine   Urgent Closed   n/a  

Edit Form Data

Reported By:
Applies To:
Current State:
Waiting For:
Target Release:
Released In:


I was just contemplating implementing something using the query search, only to get the feeling that query searches everything except for the topic text.

Does this make it impossible to search for all open bugs that are in the engine, that mention 'sometext' in the text area? cos that would be sad frown

Should this be added, or is it missing from the docs, or am i missing somethin?

-- TWiki:Main/SvenDowideit - 08 Sep 2007

"Waiting for Release" makes little sense here? Re-opening, flipping to waiting for Sven to add context.

TWiki.QuerySearch should be updated if outcome of this item is that searching topic text becomes a possibility.

-- TWiki:Main.SteffenPoulsen - 08 Sep 2007

Thanks you for reminding me - I had conveniently forgotten about this issue.

As you know, metadata was tacked on to the topic text as an afterthought, and the code architecture reflects this. Queries operate over meta-data objects, and the Meta objects don't have the topic text, so queries can't access it. Further, the efficiency of the reference implementation for queries depends on the ability to isolate regular expressions that match a small part of the topic, and hoisting them out to create a search expression. Since the text in the topic has no structural delimiters (it is "everything that is not meta") it is impossible to hoist an efficient regex that will match only the topic text without finding false positives in the meta-data content.

Maybe I'm being a bit anal here. We could add a text field to the meta object just for the query process. I'll see if it's possible.

Oh, how I wish we had the TOM.

Later: it wasn't half as hard as I thought it was going to be, once I realised that we could simply record the source text in the meta object at the time it is extracted. That actually simplifies the next step of refactoring quite a bit too.

Later again; it works now.


Impressive work, CC - very important feature, imho.


-- TWiki:Main.SteffenPoulsen - 08 Sep 2007

I missed an important call frown - fixed now.


Summary query SEARCH searches over everything except the text?
ReportedBy TWiki:Main.SvenDowideit

SVN Range TWiki-4.2.0, Sat, 08 Sep 2007, build 14780
AppliesTo Engine

Priority Urgent
CurrentState Closed

Checkins TWikirev:14792 TWikirev:14887 TWikirev:14889
TargetRelease n/a

Edit | Attach | Watch | Print version | History: r9 < r8 < r7 < r6 < r5 | Backlinks | Raw View | Raw edit | More topic actions
Topic revision: r9 - 2007-09-16 - CrawfordCurrie
This site is powered by the TWiki collaboration platform Powered by PerlCopyright © 2008-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback