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
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.
CC
Impressive work, CC - very important feature, imho.
Thanks.
--
TWiki:Main.SteffenPoulsen - 08 Sep 2007
I missed an important call
- fixed now.
CC