You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@jackrabbit.apache.org by Abhinav Mishra <am...@mdes.ms.gov> on 2008/05/06 01:43:12 UTC
Search Query Using Xpath
Hi ,
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.
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
RE: Search Query Using Xpath
Posted by Abhinav Mishra <am...@mdes.ms.gov>.
I am using the following query:
//access/appeal/_x0034_0012/*
This query returns the results when running in testing environment, but
doesn't return the results in production environment.
Regards
Abhinav Mishra
UI Modernization Project,
Tata Consultancy Services,
Phone: 601-855-3175
Email : amishra@mdes.ms.gov
-----Original Message-----
From: Abhinav Mishra [mailto:amishra@mdes.ms.gov]
Sent: Tuesday, May 06, 2008 11:22 AM
To: users@jackrabbit.apache.org
Subject: RE: Search Query Using Xpath
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
RE: Search Query Using Xpath
Posted by Abhinav Mishra <am...@mdes.ms.gov>.
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
Re: Search Query Using Xpath
Posted by Sebastian Prehn <se...@planetswebdesign.de>.
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