jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peeter Piegaze" <peeter.pieg...@day.com>
Subject Re: efficient note type indexing
Date Wed, 19 Apr 2006 11:55:01 GMT
Hi Florent,

On 4/19/06, Marcel Reutegger <marcel.reutegger@gmx.net> wrote:
> Hi Florent,
> Florent Guillaume wrote:
> > Hi,
> >
> > I have a node that has lots of unordered children nodes. Some of these
> > nodes are "real children" in the document management sense, the others
> > (in small number) are just nodes that hold complex datatypes but are
> > really part of the main document.
> >
> > I'd like to access both categories of nodes in an efficient manner:
> > - get only the nodes for my complex datatypes,
> > - get the list of "real children" nodes.
> when you say 'get a list of child nodes' isn't it easier just using the
> api instead of a query? Node.getNodes() and then have a custom
> NodeIterator that filters out unnecessary nodes?

Or you could simply push one or both categories of nodes down one
level by defining an intervening node. Then you would just get *that*
node and get its children.


View raw message