You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xindice-users@xml.apache.org by Yury Mikhienko <Yu...@mobicomk.ru> on 2004/01/21 16:00:58 UTC
counting documents in xindice collection
Hi!
Can I get the count of documents in xindice collection?
Or get document under the preset position (like /document[position()=1]) ?
Can anyone tell me about the xpath limitation in xindice?
--
Best regards,
Yury Mikhienko.
IT ERP group head, ZAO "Mobikom-Kavkaz"
tel: (8632) 704188
Re: counting documents in xindice collection
Posted by Wolfram Horwath <wo...@innovations.de>.
Hi Yury!
Yury Mikhienko schrieb:
>Hi!
>
>Can I get the count of documents in xindice collection?
>
try Collection.getResourceCount(), and have a look at JavaDoc of
Collection in org.xmldb.api.base
>Or get document under the preset position (like /document[position()=1]) ?
>
As noted before, see JavaDoc. You can get a document by its ID.
Hth, Wolfram Horwath
>Can anyone tell me about the xpath limitation in xindice?
>
>
>
Re: counting documents in xindice collection
Posted by Upayavira <uv...@upaya.co.uk>.
Yury Mikhienko wrote:
>Hi!
>
>Can I get the count of documents in xindice collection?
>Or get document under the preset position (like /document[position()=1]) ?
>Can anyone tell me about the xpath limitation in xindice?
>
>
How are you accessing Xindice? If you're using Java, you can do
something like collection.getResourceCount().
When you use position(), this will _always_ be the position of the node
within its own document, not within the collection. Frustrating, but true.
Regards, Upayavira