Hi Zoltán,

>
> I am newbie in Sedna, and I am trying to create a value-index on a document
> in a collection. The statement is:
>  create index "book-title" on doc("books.xml",
> "testcollection")/catalog/book by title as xs:string
> But I get the folowing error:
> SEDNA Message: ERROR SE5049 Not a structural XPath supplied. Details: at
> (1:30), document-in-collection is not permitted in on-XPath
> But doc("books.xml","testcollection")/catalog/book/title runs correctly.
>

It's not possible to create index on a single document within a collection.
It's only possible to create an index on the whole collection, like:

create index "book-title" on collection("testcollection")/catalog/book by
title as xs:string

If you need to create indexes on individual documents don't load them into
collection.


Ivan Shcheklein,
Sedna Team
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Sedna-discussion mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sedna-discussion

Reply via email to