Re: mRFC 0024: Full text indexing in Midgard
Jukka Zitting <[email protected]>
| Newsgroups | gmane.comp.web.midgard.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi, On 1/3/06, Henri Bergius <[email protected]> wrote: > A quick though: since with this mRFC we will get efficient tree/parent > information, could we use it to add an "IN TREE" constraint to QB for > making queries like we used to have in mgd_list_topic_articles_all(). > > Something like > > QB::limit_to_tree("GUID"); If the proposal is accepted, you'll get this feature as: $qb->add_constraint("metadata:ancestor", "=", $guid); You can even limit the query to all the ancestors of a given descendant node with: $qb->add_constraint("metadata:descendant", "=", $guid); The more limited "metadata:parent" and "metadata:child" constraints limit those queries to just one level down or up from a given node. BR, Jukka Zitting -- Yukatan - http://yukatan.fi/ - [email protected] Software craftmanship, JCR consulting, and Java development