Priority: Enhancement
Current State: Confirmed
Released In: n/a
Target Release: n/a
Applies To: Engine
Component: SEARCH, Documentation
Branches:
An avid user of DBQUERY, trying to convert my apps to standard
SEARCH, I wasted half an hour fiddling with a query that eventually ended up like this:
"parent='Foo'"
If I had read
QuerySearch more carefully, I should have realised that
parent
in
SEARCH is in fact a map rather than a string.
It should have been
"parent.name='Foo'"
What needs to happen:
- Throw an (inline) error when trying to compare a map to a string
- Document this more clearly somehow, hopefully with more examples.
I am wondering a little about why we need a map representing the parent topic; it should be possible to point to metadata on the topic parent by using some sort of dereference syntax, Eg.
'parent'/info.version
- DBQUERY uses something like
@parent.info.version
--
PaulHarvey - 16 Jun 2010
The WaitingFor topic is [[%QUERY{"WaitingFor"}%]] at version No. %QUERY{"'%QUERY{"WaitingFor"}%'/info.version"}%
The
WaitingFor topic is [[]] at version No. 65
--
PaulHarvey - 16 Jun 2010
That's where I started in
DBCacheContrib, resolving to a map. However it caused more confusion in the code, because it had to carry a lot of schema information around. By treating the META:TOPICPARENT object as a map (and the fields therein as strings) I was able to vastly simplify the code.
Regraded as Enhancement and confirmed.
--
CrawfordCurrie - 24 Jun 2010
Documentation component taken care of in
Item9415
--
PaulHarvey - 01 Aug 2010