jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhinav Mishra <amis...@mdes.ms.gov>
Subject RE: Search Query Using Xpath
Date Tue, 06 May 2008 16:21:31 GMT
The node is persistent node it has been saved to the repository. 
We have created a new top level node recently and all its child node are not
appearing when we query them using xpath.

Regards
Abhinav Mishra
UI Modernization Project,
Tata Consultancy Services,
Phone: 601-855-3175
Email  : amishra@mdes.ms.gov



-----Original Message-----
From: Sebastian Prehn [mailto:sebastian.prehn@planetswebdesign.de] 
Sent: Tuesday, May 06, 2008 1:52 AM
To: users@jackrabbit.apache.org
Subject: Re: Search Query Using Xpath

On Tuesday 06 May 2008 01:43:12 Abhinav Mishra wrote:
> We are able to search the document in the node in the jackrabbit using the
> api method call getNode().
>
> But if we use the XPath query for any document in this particular node its
> not bringing back the results.
Hi!
Are these nodes you are searching for new/transient Nodes? According to the 
spec the queries are run against the persitent repository. So you would have

to save your changes first for them to show up in the query result.

regards,
Sebastian

> Using the Same Code  Xpath Queries we are able to the get the Documents in
> other nodes.
>
>
>
> Can anyone help regarding this ?
>
>
>
> Thanks
>
>
>
> Regards
>
> Abhinav Mishra
>
> UI Modernization Project,
>
> Tata Consultancy Services,
> Phone: 601-855-3175
>
> Email  : amishra@mdes.ms.gov



-- 
PLANETS-Webdesign - Web Applications
Sebastian Prehn
Balbierstr.8 67663 Kaiserslautern
www.planetswebdesign.de
PGP keyID: 0x3507AF63


Mime
View raw message